Migrating from UIKit to SwiftUI
Here’s a list to get you started, with UIKit class names followed by SwiftUI names:
UITableView:ListUICollectionView: No SwiftUI equivalentUILabel:TextUITextField:TextFieldUITextFieldwithisSecureTextEntryset to true:SecureFieldUITextView: No SwiftUI equivalentUISwitch:ToggleUISlider:SliderUIButton:ButtonUINavigationController:NavigationViewUIAlertControllerwith style.alert:AlertUIAlertControllerwith style.actionSheet:ActionSheetUIStackViewwith horizontal axis:HStackUIStackViewwith vertical axis:VStackUIImageView:ImageUISegmentedControl:SegmentedControlUIStepper:StepperUIDatePicker:DatePickerNSAttributedString: Incompatible with SwiftUI; useTextinstead.There are many other components that are exclusive to SwiftUI, such as a stack view that lets us build things by depth rather than horizontally or vertically.
Swift Publisher Crack MacI am very impressed with your post because this post is very beneficial for me and provide a new knowledge to me
ReplyDelete
ReplyDeleteI am very impressed with your post because this post is very beneficial for me and provide a new knowledge to me
Swift Publisher Crack Mac