UITableView
:List
UICollectionView
: SwiftUI中没有UILabel
:Text
UITextField
:TextField
UITextField
withisSecureTextEntry
set to true:SecureField
UITextView
: No SwiftUI equivalentUISwitch
: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
: SwiftUI中用Text 替代;
SwiftUI组件名称与UIKit组件名称对照
最新推荐文章于 2024-04-25 23:46:35 发布