mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-01-15 13:43:28 +01:00
1e31e3ea4c596ee0e801fd59984f6be4a68d4e95
SwiftUI Examples Projects
Examples projects using SwiftUI & Combine.
Include Layout, UI, Animations, Gestures, Draw and Data. See projects files in Examples folder. 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:
If you like the project, do not forget to put star ★
Navigate
- Transition And Blur
- 2048 Game
- SFSymbols
- Calculator
- Creating And Combining Views
- Building Lists And Navigation
- Handling User Input
- WWDCPlayer
- Composing Complex Interfaces
- Working With UIControls
- Example To-Do App
- iPadOS Scenes
- Combine using GitHub API
- Async image loading
- Interfacing With UIKit
- GitHub Search
- Time Travel
- Drawing Paths And Shapes
- Animating Views And Transitions
- Jike
- Flux
- SwiftUI Download Progress View
- PureGenius
Also include:
- Movie
- InstaFake
- TempusRomanumII
- SwiftUI + Redux
- React Meets SwiftUI
- Webview
- UINote
- SplitView
- Card Animation
Projects
Animatable Cards
Gester, Animation, 3D
In class add property:
@GestureState var dragState = DragState.inactive
And in body create gester object:
let dragGester = DragGesture()
.updating($dragState) { (value, state, transaction) in
state = .dragging(translation: value.translation)
}
To card add gester and offset:
.offset(
x: dragState.translation.width,
y: dragState.translation.height
)
.rotationEffect(Angle(degrees: Double(dragState.translation.width / 10)))
.shadow(radius: dragState.isActive ? 8 : 0)
.animation(.spring())
.gesture(dragGester)
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
GitHub Search
Time Travel
Drawing Paths And Shapes
Animating Views And Transitions
Jike
Flux
SwiftUIDownloadView
#### PureGenius
Authors
Thanks for Jinxiansen, ra1028, timdonnelly, TwoLivesLeft, devxoul, cmtrounce, unixzii, ra1028 for examples project.
Languages
Swift
100%