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

Overview

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.

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

https://github.com/ivanvorobei

Navigate

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

GitHub Search

Time Travel

Drawing Paths And Shapes

Animating Views And Transitions

Jike

Flux

PureGenius

SwiftUIDownloadView

SwiftUI SideMenu

Source

SwiftUI Currency

Source

SwiftUI Weather

Source and Tutorial

DesignCode SwiftUI

Source

MTSlideToOpen-SwiftUI

Source

Currency Converter & Calculator

Source

FlipClock-SwiftUI

Source

Light Dark

CountdownFilmClutter-SwiftUI

Source

SpotlightSearch

Source

Light Dark

SwiftUI Weather App with MVVM and CoreML

Source

Growing text view in SwiftUI

Source

MGFlipView

Source

Authors

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

Other Projects

SPAlert

You can find this alerts in AppStore after feedback or after added song to library in Apple Music. Contains popular Done, Heart presets and many other. Done preset present with draw path animation like original. Also available simple present message without icon. Usage in one line code.

SPPerspective

Animation of widgets from iOS 14. 3D transform with dynamic shadow. Look video preview. Available deep customisation 3D and shadow. Also you can use static transform without animation.

SPPermissions

Using for request and check state of permissions. Available native UI for request multiple permissions at the same time. Simple integration and usage like 2 lines code.

SPDiffable

Simplifies working with animated changes in table and collections. Apple's diffable API required models for each object type. If you want use it in many place, you pass time to implement it and get over duplicates codes. This project help do it elegant with shared models and special cell providers. Support side bar iOS14 and already has native cell providers and views.

SparrowKit

Collection of native Swift extensions to boost your development. Support tvOS and watchOS.

SPIndicator

Floating indicator, mimicrate to indicator which appear when silent mode turn on / off. Support large texts and has ready-use animatable icons like done and error.

Russian-specking Community

В телеграм-канале Код Воробья пишу о iOS разработке. Помощь можно найти в нашем чате. Видео-туториалы выклыдываю на YouTube:

Tutorials on YouTube

Comments
  • Alphabetical or Historical Ordering

    Alphabetical or Historical Ordering

    Hello 👋

    Can you please order the README.md either alphabetically or historically, some canny people have been already merged their projects in first places.

    opened by mustafaozhan 4
  • Add a SwiftUI project for iPadOS

    Add a SwiftUI project for iPadOS

    Hi,

    I created a Calculator App mimicking the iOS Calculator, for iPadOS, using SwiftUI.
    It looks like the enlarged version of the iOS Calculator on iPads, and have the basic functions like simple calculations and copy/paste.

    Not sure if it can be added to this repo as an example (https://github.com/bofeiw/ios-calculator-clone-for-ipados), so just making an issue instead of PR.

    Thanks!

    opened by bofeiw 1
  • Xcode 11 beta4

    Xcode 11 beta4

    Hi,

    here are two commits to update the repo for Xcode 11 beta4. The second commit is optional, removing most deprecation warnings. There is still one error which seems to be a toolchain bug in project 2048 where the interface file does not compile and will need to be followed up with a radar.

    opened by johnno1962 1
  • Add Clendar Calendar sample

    Add Clendar Calendar sample

    Checklist

    • [x] Only one for pull request
    • [ ] UI Library
    • [ ] Installed correct via Swift Package Manager or Cocoapods
    • [x] Clean Readme
    • [x] Preview
    • [x] Added to bottom
    opened by vinhnx 0
  • new UI developed, new colors collection added, some small functions i…

    new UI developed, new colors collection added, some small functions i…

    …mproved

    Checklist

    • [ ] Only one for pull request
    • [ ] UI Library
    • [ ] Installed correct via Swift Package Manager or Cocoapods
    • [ ] Clean Readme
    • [ ] Preview
    • [ ] Added to bottom
    opened by KanishkVijaywargiya 0
  • ADD SpotlightSearch

    ADD SpotlightSearch

    Thanks for this repository, it is really helpful in many ways for SwiftUI tasks.

    I wrote some library using SwiftUI, Combine, and I've found good SwiftUI repository. While It has got still less stars, it is now queued in cocoa-controls to be rolled out. I Hope that it will be accepted!!

    Thanks!

    opened by boraseoksoon 0
  • Update CalculatorBrain.swift

    Update CalculatorBrain.swift

    Added an "AC" function, as well as a modulus ("%") function - in the calculator.swift I changed the layout as well, not sure if it was really wanted but got bored - I also changed calculator.swift to work with this

    opened by thom-bahm 0
  • Update Calculator.swift

    Update Calculator.swift

    Changed layout of calculator UI, and added Modulus function with an "AC" (clear) function (also removed some others) - I also changed calculatorBrain, so you'll need to approve both for either to work

    opened by thom-bahm 0
  • Workaround for beta 5+.

    Workaround for beta 5+.

    There was a slight regression in beta5 which meant the isFavourite star in the WWDC Player example stopped updating. This workaround fixes this for now. I have a radar open.

    opened by johnno1962 0
  • Minimum changes for Xcode 11 beta 5

    Minimum changes for Xcode 11 beta 5

    Hi,

    Best I can do for beta 5. "2048" is still broken this time with timeout type checking and Hiking badges and apparently anything to do with paths is broken this beta so I've commented it out. Haven't followed through on deprecation messages so as much as possible works with beta 4.

    opened by johnno1962 0
  • Redundant property wrappers in GitHub user search

    Redundant property wrappers in GitHub user search

    I've looked into GitHub user search project and found out that views contain unnecessary property wrappers (@State). According to WWDC sessions those shouldn't appear in such context. I removed them and search continued working correctly. I assume it'd be helpful removing them from repo to prevent newbies in Combine study on project with mistakes. Also I found out that project contains parts that are not used at all. I guess I can provide PR if needed)

    Thank you for this amazing repo btw! I also speak Russian if that helps.

    opened by glassomoss 0
Owner
Ivan Vorobei
iOS Developer
Ivan Vorobei
Poetic is a classic poetry reader. Recently released on the App Store.

Poetic is a classic poetry reader. Enjoy thousands of poems from the greatest English poets.

Dean Thompson 4 Nov 25, 2022
Get your CPU core and cluster power draw in Watts. Supports Apple Silicon and Intel.

macos-cpupower Get your CPU core and cluster power draw in Watts. What It Does and How It Works This project is designed to get the power draw of your

BitesPotatoBacks 1 Mar 11, 2022
SwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.

Articles related to this project Clean Architecture for SwiftUI Programmatic navigation in SwiftUI project Separation of Concerns in Software Design C

Alexey Naumov 4k Jan 8, 2023
Swiftui-pressed-states-example - Examples of Pressed States in SwiftUI

Examples of Pressed States in SwiftUI pressed-states.mp4

Philip Davis 6 Nov 15, 2022
In this mini app covered the concepts like basics of SwiftUI and Navigations and Animations and List with CRUD functions and MVVM and App Launch and App icons adding and also applied persistence using UserDefaults Concept.

TodoList In this application used the concepts from the beginner level project of SwiftUI_Evolve_1 The following concepts covered in this mini app Swi

Sivaram Yadav 2 Dec 4, 2021
Short examples and references to work with property wrappers in SwiftUI.

A Colection of useful playgrounds This repo contains a collection of useful swift playgrounds. PropertyWrappers Playground Contains small example of u

Joan F. Guerrero 0 Nov 24, 2021
Learning SwiftUI by examples.

SwiftUI MindBlowing ?? Collections of mind-blowing SwiftUI snippets and projects. Why another awesome-swiftui? SwiftUI has come with a blast during an

An Tran 100 Nov 1, 2022
Examples for Swift Algorithms visualized in SwiftUI.

Examples for Swift Algorithms Examples for Swift Algorithms visualized in SwiftUI. There are many more algorithms in the package - feel free to contri

Ralf Ebert 5 Oct 22, 2022
Examples of new SwiftUI framework

SwiftUI by Examples SwiftUI is a simple way to build user interfaces across all Apple platforms with the power of Swift. I'm going to fill the repo wi

Artem Novichkov 192 Dec 9, 2022
A weather app made using swiftUI and lottie animations

Paolinsky Weather app Weather app made using swiftUI, Lottie animations and the openweather api (https://openweathermap.org/api/one-call-api) Setup Ge

PaoloTorregroza 8 Dec 6, 2022
Stylish eCommerce iOS App UI with Hero Animations using SwiftUI 3.0

Uray - eCommerce App UI Stylish eCommerce iOS App UI with Hero Animations using SwiftUI 3.0. Video Preview Screenshots Features Hero Animations SwiftU

Shameem Reza 20 Dec 27, 2022
SwiftUI Projects from Udemy SwiftUI Masterclass

SwiftUI Masterclass Repos: AsyncImage (N/A) Fructus (finished): an app for getting information about different fruits. Data comes from json files. Afr

Patrick Spafford 1 Mar 3, 2022
Notes App using Core Data for persisting the data ✨

Notes Notes app where we can save and manage our daily notes. App usage The app allow us to add new notes We can delete our existing notes We can edit

Chris 0 Nov 13, 2021
A document-based SwiftUI application for viewing and editing EEG data, aimed at making software for viewing brain imaging data more accessible.

Trace A document-based SwiftUI application for viewing and editing EEG data, aimed at making software for viewing brain imaging data more accessible.

Tahmid Azam 3 Dec 15, 2022
📱 An app fully written in SwiftUI showcasing beautiful design and animations.

DesignCode DesignCode is an app fully built using Apple's latest SwiftUI and Combine framework. Beautifully written code that is well intended for eas

Mithun 704 Jan 3, 2023
All the projects from 100 Days of SwiftUI, as taught by Paul Hudson (Hacking with Swift)

100 Days of SwiftUI 19 projects of increasing complexity built with SwiftUI. These projects were built as part of an iOS development course taught by

Emmanuel Chucks 7 Dec 4, 2022
URLLivePreview - A small project that utilizes LPLink for SwiftUI projects

URLLivePreview URLLivePreview is a swift Package to add a preview of a URL site.

Rob Evans 11 Dec 20, 2022
The SwiftUI Messages Clone consists of layout and composition clones of the iOS Messages app.

The SwiftUI Messages Clone consists of layout and composition clones of the iOS Messages app. It has Messages-like bubble and screen effects, reactions, and animations, all created with SwiftUI.

Stream 20 Dec 24, 2022
UDF (Unidirectional Data Flow) is a library based on Unidirectional Data Flow pattern.

UDF (Unidirectional Data Flow) is a library based on Unidirectional Data Flow pattern. It lets you build maintainable, testable, and scalable apps.

inDriver 51 Dec 23, 2022