Created
March 12, 2023 18:06
-
-
Save manishpathak99/fdb3e19637a1f9269bf97cf6109ef9b7 to your computer and use it in GitHub Desktop.
UIKit equivalent to SwiftUI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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