domingo, 9 de junio de 2019

02. Tutorial SwiftUI. UIKit vs SwiftUI

Lo primero es saber como se llaman las clases que usamos en UIKit ahora en Swift UI, por lo que en esta entrada pongo una relación de clases, necesarias para poder "migrar".

  • UITableViewList
  • UICollectionView: No tiene equivalente en SwiftUI
  • UILabelText
  • UITextFieldTextField
  • UITextField con isSecureTextEntry asignado a true: SecureField
  • UITextView: No tiene equivalente en SwiftUI
  • UISwitchToggle
  • UISliderSlider
  • UIButtonButton
  • UINavigationControllerNavigationView
  • UIAlertController con stilo .alertAlert
  • UIAlertController con stilo .actionSheetActionSheet
  • UIStackView  con axis horizontal: HStack
  • UIStackView con axis vertical: VStack
  • UIImageViewImage
  • UISegmentedControlSegmentedControl
  • UIStepperStepper
  • UIDatePickerDatePicker
  • NSAttributedString: Incompatible con SwiftUI, hay que usarText 

A demás hay que tener en cuenta que hay otros muchos componentes exclusivos solo de SwiftUI que no existen en UIKit, que veremos mas adelante.

No hay comentarios:

Publicar un comentario