SwiftUI

Examples projects using SwiftUI released by WWDC2019. Include Layout, UI, Animations, Gestures, Draw and Data.

Github星跟踪图

SwiftUI Examples

About

Examples projects using SwiftUI & Combine.
Include Layout, UI, Animations, Gestures, Draw and Data. See projects files in Files & Other Projects folders. If you have project, make a pull request or create issue with link to repo.

Interested in UI and animations in UIKit?
See awesome-ios-ui pack with UI elements:

awesome-ios-ui

If you like the project, do not forget to put star ★
and follow me on GitHub:

https://github.com/ivanvorobei

Other projects

Also include:

  • Movie
  • InstaFake
  • TempusRomanumII
  • SwiftUI + Redux
  • React Meets SwiftUI
  • Webview
  • UINote
  • SplitView
  • Card Animation

Animatable Cards

3D

For add 3D rotation for back cards use code:

.rotation3DEffect(
	Angle(degrees: dragState.isActive ? 0 : 60), axis: (x: 10.0, y: 10.0, z: 10.0)
 )

For medium card use 30 angles.

Animation

In preview I am use Spring animation for all cards:

.animation(.spring())

Area to Card

SFSymbols

For button using SFSymbols pack with ready-use icons. Also support customisable weight:

Image(systemName: show ? "slash.circle.fill" : "slash.circle")
   .font(Font.title.weight(.semibold))

Button

For change state using @State as property:

@State var show = false

Transition And Blur

2048 Game

SFSymbols

Calculator

Creating And Combining Views

Building Lists And Navigation

WWDCPlayer

Handling User Input

Composing Complex Interfaces

Working With UIControls

Example To-Do App

iPadOS Scenes

Combine using GitHub API

Async image loading

Interfacing With UIKit

Time Travel

Drawing Paths And Shapes

Animating Views And Transitions

Jike

Flux

SwiftUIDownloadView

SwiftUI SideMenu

Source

SwiftUI Currency

Source

SwiftUI Weather

Source and Tutorial

DesignCode SwiftUI

Source

MTSlideToOpen-SwiftUI

Source

FlipClock-SwiftUI

Source, Light, Dark, :-:, :-:, , , ### Currency Converter & Calculator

Source

CountdownFilmClutter-SwiftUI

Source

SpotlightSearch

Source, Light, Dark, :-:, :-:, , , ### Authors

Thanks for Jinxiansen, ra1028, timdonnelly, TwoLivesLeft, devxoul, cmtrounce, unixzii, ra1028 for examples project.

主要指标

概览
名称与所有者ivanvorobei/SwiftUI
主编程语言Swift
编程语言Swift (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2019-06-04 13:53:17
推送于2023-12-07 14:10:03
最后一次提交2023-04-10 19:51:49
发布数0
用户参与
星数5.4k
关注者数141
派生数568
提交数193
已启用问题?
问题数12
打开的问题数6
拉请求数31
打开的拉请求数1
关闭的拉请求数6
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?