gitmyhub

SwiftUI

Swift ★ 5.6k updated 2y ago

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

A collection of runnable SwiftUI example projects, covering layouts, animations, networking, and complete mini-apps, that you can open in Xcode and experiment with while learning Apple's UI framework.

SwiftSwiftUIXcodeUIKitsetup: easycomplexity 1/5

This repository is a collection of example projects built with SwiftUI, Apple's framework for building apps on iPhone, iPad, and Mac. SwiftUI was introduced at Apple's developer conference in 2019 as a new way to design app interfaces using Swift code rather than dragging elements in a visual editor. This repo collects working code examples demonstrating how to use different parts of the framework.

The examples cover a wide range of topics: layouts, animations, gestures, drawing shapes and paths, handling user input, loading images from the network, connecting to a web API, building lists and navigation, and working with the older UIKit interface system alongside SwiftUI. There are also complete mini-apps like a 2048 game, a calculator, a to-do app, a weather app, a currency converter, and a side menu component, among others.

Each example is a separate Xcode project stored in the repository. The README consists mostly of a navigation list and animated screenshot previews showing what each example looks like when running on a device. Some entries link to source code in other repositories maintained by different authors.

The repository also includes links to a related collection of UIKit components, for developers who work with the older Apple interface framework.

This resource suits iOS and iPadOS developers who are learning SwiftUI and want runnable, specific code examples they can open in Xcode and experiment with, rather than reading abstract documentation. It is organized as a reference collection rather than as a single app or library.

Where it fits