Episode #437

SwiftUI Button Styles

17 minutes
Published on April 28, 2020

This video is only available to subscribers. Get access to this video and 573 others.

Buttons in SwiftUI are much more flexible than UIButton in UIKit. For starters, there is no assumption that our buttons are just text or an image, they can use any view whatsoever for the content, which is called the "label". Using Button Styles we can create buttons in whatever shape or form we desire. In this episode we create three different button styles using SwiftUI to show how flexible they are and how easy they are to reuse.

This episode uses Xcode 11.4, Swift 5.2.