Here’s a list to get you started, with UIKit class names followed by SwiftUI names: UITableView : List UICollectionView : No SwiftUI equivalent UILabel : Text UITextField : TextField UITextField with isSecureTextEntry set to true: SecureField UITextView : No SwiftUI equivalent 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 : Incompatible with SwiftUI; use Text instead. There are many other components that are exclusive to SwiftUI, such as a stack view that lets u...
Comments
Post a Comment