Swift’s nullable and default parameters are really able to shine in SwiftUI, where you can for example invoke the frame method on a View to easily change just its width or height.

Screenshot of SwiftUI method declaration for View.frame, showing nullable width and height parameters.

*****
Written on