Type to search.

Swift

3 min

Swift: Don't use nested ternary operators

The ternary operator is a very handy notation to simply abbreviate if else constructs. And often it’s seen nested - one, two or three times. The compiler has no problems with such code. But we, as human beings, reach…

softwareswift

3 min

SwiftUI: Platform ViewModifier

SwiftUI is fantastic when you need to write code for different platforms. The code can be shared. But how do I distinguish platform-specific code parts?

softwareswift