SwiftUI Examples

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.

Also include:

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

Animatable Cards

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

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

TransitionBlur

2048 Game

2048game

SFSymbols

SFSymbols

Calculator

Calculator

Creating And Combining Views

CreatingAndCombiningViews

Building Lists And Navigation

BuildingListsAndNavigation

WWDCPlayer

WWDCPlayer

Handling User Input

HandlingUserInput

Composing Complex Interfaces

ComposingComplexInterfaces

Working With UIControls

WorkingWithUIControls2

WorkingWithUIControls

Example To-Do App

ExampleToDoApp

iPadOS Scenes

iPadOSScenes

Combine using GitHub API

CombineUsingGitHubAPI

Async image loading

AsyncImageLoading

Interfacing With UIKit

InterfacingWithUIKit

GitHub Search

GitHubSearch

Time Travel

TimeTravel

Drawing Paths And Shapes

DrawingPathsAndShapes

Animating Views And Transitions

AnimatingViewsAndTransitions

Jike

Jike

Flux

Flux

SwiftUIDownloadView

SwiftUIDownloadView

PureGenius

PureGenius

SwiftUI SideMenu

SwiftUISideMenu

SwiftUI Currency

Source

SwiftUICurrency

SwiftUI Weather

Source and Tutorial

Banner

DesignCode SwiftUI

Source

68747470733a2f2f692e696d6775722e636f6d2f4e3948665764442e706e67

MTSlideToOpen-SwiftUI

Source

example

GitHub

https://github.com/ivanvorobei/SwiftUI