Create a prefix operator~ to easily read .rawValue
May 18, 2022
There’s a super handy little prefix I started using in several of my projects.
It saves me from having to repeatedly type .rawValue when using enumerations or anything wrapped in a RawRepresentable.
Short, but super handy!