Apple brings the API for Dynamic Island in Xcode 14.1 Beta.
Today's article mainly presents how to use the new Live Activities API to create your own Dynamic Island.
let attributes = TimerAttributes(endDate: Date().addingTimeInterval(60 * 60))
do {
_ = try Activity<TimerAttributes>.request(attributes: liveActivityAttributes, contentState: .init())
} catch {
print(error.localizedDescription)
}
References:
Dynamic Island (and Live Activities): Quick start tutorial: https://nemecek.be/blog/171/dynamic-island-and-live-activities-quick-start-tutorial
A sample of dynamic island designs recreated for inspiration:
Follow me on:
コメント