AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Using a Read Only Property in Swift?
Swift now has effectful read only properties. This means that if you define property which returns a value, you can also make it throwable. Just like you have methods that trow, you will use the try key word before accessing property. In the future, non read only properties will also be able to have a throwing option.