mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-19 07:54:09 +01:00
5.1 KiB
5.1 KiB
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
- SwiftUI SideMenu
Also include:
- Movie
- InstaFake
- TempusRomanumII
- SwiftUI + Redux
- React Meets SwiftUI
- Webview
- UINote
- SplitView
- Card Animation
Projects
Animatable Cards
Gester
In class add property:
@GestureState var dragState = DragState.inactive
Class DragState see in file of project. Also you can see it in apple's example page.
To card add gester and offset:
.offset(
x: dragState.translation.width,
y: dragState.translation.height
)
.gesture(dragGester)
Animation
In preview I am use Spring animation for all cards:
.animation(.spring())
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.
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
SwiftUI SideMenu
Authors
Thanks for Jinxiansen, ra1028, timdonnelly, TwoLivesLeft, devxoul, cmtrounce, unixzii, ra1028 for examples project.