Skip to content

A collection of iOS development examples, including Swift, SwiftUI, animations, audio/video, encryption, and more.

Notifications You must be signed in to change notification settings

FoksWang/iOS-Code-Examples

Repository files navigation

iOS Code Examples 📱💡

This repository contains various iOS development examples, including Swift, SwiftUI, animations, audio/video, encryption, and more.

📂 Demo List

A simple and lightweight podcast player designed for Apple Watch, built with SwiftUI. This demo helps developers understand how to create a watchOS app with audio playback, SwiftUI interfaces, and AVFoundation integration. 🚀🎧

Demo Preview


A SwiftUI performance optimization example using Gauss's formula to calculate cumulative values with O(1) complexity.

Demo Preview


A SwiftUI infinite scrolling carousel with smooth animations and auto-scrolling support.

Demo Preview


A SwiftUI like button with a jelly-like animation and haptic feedback.

Demo Preview


This SwiftUI demo showcases how to integrate MLXLLM for on-device AI text generation. The app allows users to input a prompt and receive AI-generated responses directly on their iPhone, leveraging Apple’s MLX framework.

Demo Preview

⚠️ Important Note

This project can only run on a physical iPhone or iPad. MLXLLM does not support the iOS Simulator, as it requires direct access to Apple Silicon hardware for efficient on-device inference.


A SwiftUI demo that highlights SF Symbols variable color animations.
It demonstrates .variableColor.iterative (layer-by-layer coloring) and .variableColor.cumulative (accumulative coloring), including reversing effects.

Demo Preview


A SwiftUI demo showcasing contentTransition() for smooth Play/Pause button transitions.

Demo Preview


📌 More Examples Coming Soon!

Stay tuned for more SwiftUI & iOS development demos. If you find this helpful, feel free to ⭐️ the repo!


About

A collection of iOS development examples, including Swift, SwiftUI, animations, audio/video, encryption, and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages