Skip to content
项目

关于

复刻的灵动岛设计示例,供参考

其他项目

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

A sample of Dynamic Island widgets that will help you make better things!

🏝 Dynamic Islands

This repo aims to provide sample code for lots of different types of Live Activities in the Dynamic Island, for you to use as inspiration for your own projects. We start by recreating the Islands that Apple has introduced for the launch of the iPhone 14 Pro. The goal is to make each island type customizable, accessible and flexible so that you can easily change it to your needs.

image

If you want to play around with Swift Charts, check out the 📊 Swift Charts repo as well!

Todo

  • Add explanations of the different components
  • Add example that allows users to tap on objects and handle them
  • Add examples that show updates
  • Create better architecture
  • Make islands accessible

See the open issues if you think anything is missing from this list. You can also contact me on Twitter if you have any suggestions or feedback.

How to add a new island 🏝

You will need to replicate all the files in the Island folder and add your new widget to the Widget Bundle. More instructions will follow. If you have any questions feel free to create an issue.

Islands

Apple

Phone

Recreation of the incoming phone call dynamic island

image

Music

Recreation of the now playing island

image

Generic

Areas

Overview of the different areas in an Expanded Dynamic Island view (Leading, Trailing, Center and Bottom)

image

Other Example Repos

Check out my other example repos

🪧 TipKit

📊 Swift Charts

🥽 visionOS

探索相关项目

加载中…