Jinxiansen/SwiftUI là dự án Mobile trên GitHub, viết chủ yếu bằng Swift, với 5.4k sao. `SwiftUI` Framework Learning and Usage Guide. 🚀
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This article refers to SwiftUI apple example and records the results of the exploration here, I hope to be helpful to you.
For the content described in this article, by default you have some experience based on Swift language development, so it will not describe every detail in detail; if you have doubts about Swift syntax, you can learn Swift Grammar.
When learning and using SwiftUI, if you have any questions, you can join the SwiftUI QQ Group: 18552966 to discuss communication.
中文版🇨🇳
Recommended Preview: Windows 11 desktop client implemented using SwiftUI.
⭐️ Stargazers over time
💻 Requirements
macOS 10.15
Xcode 11.0
iOS 13.0
Directory:
Basic View
Text
Text
TextField
SecureField
Image
Image
WebImage
Button
Button
PullDownButton
ItemBasedPopUpButton
NavigationButton
PresentationButton
EditButton
PasteButton
Picker
Picker
DatePicker
Toggle
Slider
Stepper
SegmentedControl
Special Views
WebView
UIViewController
Layout
Stacks
HStack
VStack
ZStack
List
List
ScrollView
ForEach
Container Views
Group
GroupBox
Section
Form
Architectural Views
NavigationView
TabView
HSplitView
VSplitView
Alert
Alert
Modal
Popover
Sheet
ActionSheet
State and Data Flow
Bindings
Binding
Data-Dependent Views
State
ObjectBinding
EnvironmentObject
Environment Values
Environment
EnvironmentValues
ENavigation Models
DynamicNavigationDestinationLink
Preferences
LocalizedStringKey
Transactions
Transaction
Gestures
Basic Gestures
TapGesture
LongPressGesture
DragGesture
MagnificationGesture
RotationGesture
Combined Gestures
SequenceGesture
SimultaneousGesture
ExclusiveGesture
Custom Gestures
AnyGesture
Basic View
Text
Text is used to display one or more lines of text content with the same effect as UILabel, but it is even better.
If you want to create Text, just create it with Text("SwiftUI");
With chained syntax, you can also add multiple attributes to the text, such as fonts, colors, shadows, spacing between top left and right, and so on.
SecureField is generally used as a password input. It is used in the same way as TextField. The example and the running effect are the same as TextField.
Image
The Image control is used to display images, example:
webImage is used to download the web image, use the URLSession to download the original Image after successful download; you can also use Kingfisher in the downloadWebImage function .
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/Jinxiansen/SwiftUI là nguồn chính thức.
Jinxiansen/SwiftUI có bao nhiêu sao?
Jinxiansen/SwiftUI có 5.4k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/Jinxiansen/SwiftUI. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
Jinxiansen/SwiftUI có những chủ đề gì?
GitHub topics của Jinxiansen/SwiftUI: "articles", "swiftui", "swiftui-example", "wwdc", "wwdc2019". TopGit xếp repo vào nhóm Mobile.
Jinxiansen/SwiftUI có trang demo không?
Dự án có trang chủ ở https://jinxiansen.github.io/SwiftUI/. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
Jinxiansen/SwiftUI còn đang phát triển không?
Commit gần nhất trên Jinxiansen/SwiftUI là 2.8 năm trước (theo timestamp GitHub). Repo có 527 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Jinxiansen/SwiftUI dùng license gì?
Jinxiansen/SwiftUI phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Jinxiansen/SwiftUI viết bằng ngôn ngữ gì?
Jinxiansen/SwiftUI chủ yếu viết bằng Swift. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về SwiftUI?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về SwiftUI.