Migrating from UIKit to SwiftUI

Here’s a list to get you started, with UIKit class names followed by SwiftUI names:

  • UITableViewList
  • UICollectionView: No SwiftUI equivalent
  • UILabelText
  • UITextFieldTextField
  • UITextField with isSecureTextEntry set to true: SecureField
  • UITextView: No SwiftUI equivalent
  • UISwitchToggle
  • UISliderSlider
  • UIButtonButton
  • UINavigationControllerNavigationView
  • UIAlertController with style .alertAlert
  • UIAlertController with style .actionSheetActionSheet
  • UIStackView with horizontal axis: HStack
  • UIStackView with vertical axis: VStack
  • UIImageViewImage
  • UISegmentedControlSegmentedControl
  • UIStepperStepper
  • UIDatePickerDatePicker
  • NSAttributedString: Incompatible with SwiftUI; use Text instead.

    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.

Comments

  1. 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

  2. I 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

    ReplyDelete

Post a Comment

Popular posts from this blog

PayUMoney Integration in Swift 5

Create Segment Control in SwiftUI