SwiftUI
reference
- 🍻SwiftOnTap
Complete SwiftUI Docs with Examples.
- SwiftUI Cookbook
- AltSwiftUI : 支持
iOS 11.0
的SwiftUI
Open Source UI framework based on SwiftUI syntax and features, adding backwards
- Awesome SwiftUI
🌮 Awesome resources, articles, libraries about SwiftUI
- Fucking SwiftUI
- SwiftUI by Example
- FuckingSwiftUI
提供SwiftUI中文教程,包含进阶内容
- SwiftUI Cheat Sheet
- Building SwiftUI debugging utilities
- LearnSwift
Combine
- iOS App Dev Tutorials
Learn the basics of Xcode, SwiftUI, and UIKit to create compelling iOS apps.
- RxSwift to Combine Cheatsheet
- OpenCombine : 支持
iOS 8.0
的Combine
Open source implementation of Apple's Combine framework for processing values over time. compatibility.
- Using Combine
content for Using Combine - notes on learning Combine with UIKit and SwiftUI
OpenSource Apps
- iAppStore-SwiftUI
iAppStroe is an Apple Store tool app written in SwiftUI.
- ACHNBrowserUI
Animal Crossing New Horizon companion app in SwiftUI
- MovieSwiftUI
SwiftUI & Combine app using MovieDB API. With a custom Flux (Redux) implementation.
- Cleaner for Xcode
Make Xcode Clean Again
UIKit -> SwiftUI
- SwiftUI-Introspect
Introspect underlying UIKit/AppKit components from SwiftUI
- SwiftUIX
An exhaustive expansion of the standard SwiftUI library.
- Coordinator
A declarative navigation API for SwiftUI.
Concept
SwiftUI
vsUIKit
SwiftUI UIKit Text & Label UILabel TextField UITextField TextEditor UITextView Button & Link UIButton Image UIImageView NavigationView UINavigationController & UISplitViewController ToolbarItem UINavigationItem ScrollView UIScrollView List UITableView LazyVGrid & LazyHGrid UICollectionView HStack & VStack UIStack LazyHStack & LazyVStack UIStack TabView UITabBarController & UIPageViewController Toggle UISwitch Slider UISlider Stepper UIStepper ProgressView UIProgressView & UIActivityIndicatorView Picker UISegmentedControl DatePicker UIDatePicker Alert & ActionSheet UIAlertController Map MapKit
Usage
// SwiftUI 中使用 UIKit
// > SwiftUI 中使用 UIView
struct SearchView: UIViewRepresentable {
func makeUIView(context: Context) -> UISearchBar {
let searchBar = UISearchBar()
searchBar.placeholder = "search..."
return searchBar
}
func updateUIView(_ uiView: UISearchBar, context: Context) {
}
}
// > SwiftUI 中使用 UIViewController
struct ColorPickerView: UIViewControllerRepresentable {
func makeUIViewController(context: Context) -> UIColorPickerViewController {
let controller = UIColorPickerViewController()
return controller
}
func updateUIViewController(_ uiViewController: UIColorPickerViewController, context: Context) {
}
}
// UIKit 中使用 SwiftUI
UIHostingController(rootView: SearchView())