Skip to content

Instantly share code, notes, and snippets.

@manishpathak99
Created March 12, 2023 18:06
Show Gist options
  • Save manishpathak99/fdb3e19637a1f9269bf97cf6109ef9b7 to your computer and use it in GitHub Desktop.
Save manishpathak99/fdb3e19637a1f9269bf97cf6109ef9b7 to your computer and use it in GitHub Desktop.
UIKit equivalent to SwiftUI
UIKit SwiftUI
UILabel Text & Label
UIImageView Image
UITextField TextField
UITextView TextEditor
UISwitch Toggle
UISlider Slider
UIButton Button
UITableView List
UICollectionView LazyVGrid / LazyHGrid
UINavigationController NavigationView
UITabBarController TabView
UIAlertController with style .alert Alert
UIAlertController with style .actionSheet ActionSheet
UIStackView with horizontal axis HStack / LazyHStack
UIStackView with vertical axis VStack / LazyVStack
UISegmentedControl Picker
UIStepper Stepper
UIDatePicker DatePicker
NSAttributedString No equivalent (use Text)
MapKit Map
UIProgressView ProgressView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment