All Projects → jaywcjlove → swiftui-example

jaywcjlove / swiftui-example

Licence: MIT license
SwiftUI 示例,技巧和技术集合,帮助我构建应用程序,解决问题以及了解SwiftUI的实际工作方式。

Programming Languages

swift
15916 projects
Markdown
49 projects
Rich Text Format
576 projects

Projects that are alternatives of or similar to swiftui-example

Movie Trailers SwiftUI
A simple app which shows the lastest movies trailers based on different genres developed using SwiftUI.
Stars: ✭ 51 (-53.21%)
Mutual labels:  uikit, swiftui, swiftui-example
NativeMarkKit
NativeMark is a flavor of Markdown designed to be rendered by native apps.
Stars: ✭ 36 (-66.97%)
Mutual labels:  uikit, swiftui
ColorUp
An easy way to generate strongly typed Swift extensions for either UIColor or Color based off of your colors within the project's asset catalog.
Stars: ✭ 16 (-85.32%)
Mutual labels:  uikit, swiftui
Swift Composable Architecture
A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
Stars: ✭ 5,199 (+4669.72%)
Mutual labels:  uikit, swiftui
Redux
Manage iOS App state with Redux and Async/Await :)
Stars: ✭ 18 (-83.49%)
Mutual labels:  uikit, swiftui
column-text-view-ui
📄 Column Text View is an adaptive UI component that renders text in columns, horizontally [iOS 12, UIKit, TextKit, SwiftUI].
Stars: ✭ 11 (-89.91%)
Mutual labels:  uikit, swiftui
Swiftui Cheat Sheet
SwiftUI 2.0 Cheat Sheet
Stars: ✭ 3,417 (+3034.86%)
Mutual labels:  uikit, swiftui
BottomSheet
Access UISheetPresentationController in SwiftUI on iOS 15 using a simple .bottomSheet modifier.
Stars: ✭ 332 (+204.59%)
Mutual labels:  uikit, swiftui
Render
UIKit a-là SwiftUI.framework [min deployment target iOS10]
Stars: ✭ 2,150 (+1872.48%)
Mutual labels:  uikit, swiftui
icecream swiftui
No description or website provided.
Stars: ✭ 70 (-35.78%)
Mutual labels:  swiftui, swiftui-example
ridesharing-ios
Ridesharing driver & rider sample apps using HyperTrack SDK
Stars: ✭ 97 (-11.01%)
Mutual labels:  swiftui, swiftui-example
SwiftUIKit
📱 UIKit code that is fun to write
Stars: ✭ 71 (-34.86%)
Mutual labels:  uikit, swiftui
LocalConsole
In-app console and debug tools for iOS developers
Stars: ✭ 595 (+445.87%)
Mutual labels:  uikit, swiftui
iOS14-Resources
A curated collection of iOS 14 projects ranging from SwiftUI to ML, AR etc.
Stars: ✭ 85 (-22.02%)
Mutual labels:  uikit, swiftui
SwiftUICalculator
A calculator app using SwiftUI which is introduced in WWDC19
Stars: ✭ 33 (-69.72%)
Mutual labels:  swiftui, swiftui-example
CurrencyText
Currency text field formatter available for UIKit and SwiftUI 💶✏️
Stars: ✭ 124 (+13.76%)
Mutual labels:  uikit, swiftui
UIViewPreviewProvider
Allows displaying UIViews inside the Xcode preview canvas
Stars: ✭ 36 (-66.97%)
Mutual labels:  uikit, swiftui
SheeKit
Customize and resize sheets in SwiftUI with SheeKit. Utilise the power of `UISheetPresentationController` and other UIKit features.
Stars: ✭ 56 (-48.62%)
Mutual labels:  uikit, swiftui
About Swiftui
Gathering all info published, both by Apple and by others, about new framework SwiftUI.
Stars: ✭ 5,954 (+5362.39%)
Mutual labels:  uikit, swiftui
SwiftUIDemo
A demo app showing you how to build a table view and navigation interface with SwiftUI
Stars: ✭ 26 (-76.15%)
Mutual labels:  swiftui, swiftui-example

SwiftUI by Example

SwiftUI 示例,技巧和技术集合,帮助我构建应用程序,解决问题以及了解 SwiftUI 的实际工作方式。主要内容来源 hackingwithswift.com,下面所有实例都是在 macOS Big Sur 系统上运行,基于 Xcode 12.4 开发。

🚧 注意:示例适用于 macOS/iOS 的 Swift 编程(主要是 macOS),文字解释内容基于 Google 翻译,英文水平有限欢迎 RP 完善,小部分经过了添加或者修改,对部分内容进行了新增。如果对 Swift 语法不熟悉,这里有简单的 Swift 语法入门,对 SwiftUI 不熟悉,在这里提供了一个 SwiftUI 速查手册

🚧 注意:版权归属 hackingwithswift.com 原作者,对任何法律问题及风险不承担任何责任,没有任何商业目的,如果认为侵犯了您的版权,请来信告知。同时我不能完全保证内容的正确性。通过使用本站内容带来的风险与我无关。当使用本站时,代表您已接受了本站的使用条款和隐私条款。

为方便在 Swift 中颜色拾取,提供了一个小工具(UI-Color),欢迎提出改进意见。

SwiftUI 论坛

只是讨论 SwiftUI 事物的地方 论坛→。想法来源于 sindresorhus/swiftui

示例目录

介绍

简要介绍 SwiftUI 的基础

建立一个完整的项目

通过实际的应用程序项目学习 SwiftUI

使用静态文本

整齐地布局文本

图像,形状和媒体

绘制图标,圆形,渐变等

视图布局

布局大小,优先级和间距

堆栈,网格,滚动视图

以结构化方式定位视图

用户界面控件

响应交互并控制程序状态

响应事件

快捷方式,旋转方式和外观

点击和手势

滑动,轻击,摇动和其他输入

状态

响应交互并控制程序状态

列表

创建数据滚动表

表单

快速有效地获得用户输入

容器

将视图放置在导航控制器等中

对话框和菜单

发生某些情况时显示模式通知

切换界面

将您的用户从一个视图移动到另一个视图

转换视图

剪辑,大小,比例,旋转等

绘画

使用自定义形状控制渲染

动画

通过运动使您的界面栩栩如生

排版视图

使您的UI结构更易于理解

跨平台 SwiftUI

学习让您的应用在任何地方都看起来很棒

数据

通过 Core Data 集成和更多功能处理数据

辅助功能

如何使每个人都能使用您的应用

工具

使用Xcode的帮助构建更好的应用程序

附录A

如何使用每个 SwiftUI 属性包装器

工具推荐

License

Licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].