SwiftUIの基本を身につけたい方はこちら

【Xcode/Swift】SwiftUI開発とStoryboard(UIKit)開発の違い

UIKit とSwiftUIのオブジェクトの名前の違い

UIKit SwiftUI
UILabel Text & Laebl
UIImage 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
MapKit Map
UIProgressView ProgressView

評価