SwiftUI Reference

UI Kit Translation to SwiftUI

UI Kit VS SwiftUI

SwiftUI has many of the UI Kit equivalents only without the UI prefix. The underlying code may vary, but the functionality is the same

SwiftUI Components

Swift UI components are the foundation of the framework. 

  • UITableView : List
  • UICollectionView : None
  • UILabel : Text
  • UITextField : TextField
  • UITextField with SecureTextEntry : SecureField
  • UITextView : None
  • UISwitch : Toggle
  • UISlider : Slider
  • UIButton : Button
  • UINavigationController : NavigationView
  • UIAlertController with style .alert : Alert
  •  UIAlertController with style .actionSheet : ActionSheet
  • UIStackView with horizontal axis : HStack
  • UIStackView with vertical axis : VStack
  • UIImageView : Image
  • UISegmentedControl : SegmentedControl 
  • UIStepper : Stepper
  • UIDatePicker : DatePicker
  • NSAttributedString : None

Made with ❤ By Mason Dierkes

Close Menu