Introduction
SwiftUICompatKit is an open source project that enables accessing controls that has not been developed or have limited functionality in SwiftUI.
This library is actively being updated. To view the latest status of the development, check the below table.
Examples
Click on the individual links from SwiftUICompatKit column to view the example use of each control.
Current State of Development.
UIKit | SwiftUI | SwiftUICompatKit |
---|---|---|
UIActivityIndicatorView | - | ActivityIndicator |
UIBarButtonItem | NavigationView, .navigationBarItems | - |
UIButton | Button | - |
UICollectionView | - | CollectionView |
UIDatePicker | DatePicker | - |
UIImageView | Image | - |
UILabel | Text | - |
UINavigationBar | NavigationView | - |
UIPageControl | - | - |
UIPickerView | Picker | - |
UIScrollView | ScrollView | - |
UISegmentedControl | Picker, .segmentedPickerStyle | - |
UISlider | Slider | - |
UIStackView | HStack, VStack | - |
UIStepper | Stepper | - |
UISwitch | Toggle | - |
UITabBar | TabView | - |
UITabBarItem | .tabItem | - |
UITableView | List | - |
UITextField | TextField, SecureTextField | - |
UIToolBar | - | - |
View Controllers:
UIKit | SwiftUI | SwiftUICompatKit |
---|---|---|
UIActivityViewController | - | - |
UIAlertController | View, .alert | - |
UICollectionViewController | Complex Interface | CollectionView |
UIImagePickerController | - | ImagePicker |
UINavigationController | - | - |
UIPageViewController | - | - |
UISearchController | - | - |
UISplitViewController | - | - |
UITabBarController | TabView | - |
UITableViewController | List | - |
UIVideoEditorController | - | - |
UIViewController | View | - |
Installation:
SwiftPackages
Requirements: XCode 10.5 +
In XCode Select: File > Swift Packages > Add Package Dependency
URL : https://github.com/AmirKamali/SwiftUICompactKit