Questions tagged [dynamic-island]

23 questions
15
votes
2 answers

How to detect dynamic-island size and changes in SwiftUI & UIKit

How can we detect the size and changes of the iPhone 14 pro dynamic-island? Since the safe area provides a safe rectangle inside the rounded screen and top or bottom insets, but nothing about an object inside the rectangle. The all we know about…
Mojtaba Hosseini
  • 95,414
  • 31
  • 268
  • 278
7
votes
3 answers

How to detect user's device has dynamic island in UIKit?

In my application, I was implemented pull-to-refresh feature and custom loading icon. In IPhone which has dynamic island, It was overlapsed my loading icon. I want to detect device which has dynamic island or not. If it has, I will add some top…
Tar journey
  • 379
  • 4
  • 13
4
votes
1 answer

Is it possible to display contents on dynamic island while app is in foreground?

I have followed Apple's document and create an example, the content i want to show only appear when app enter background. I wonder is it possible to display while in foreground?Thanks every much.
wangmchn
  • 115
  • 5
3
votes
1 answer

Issue: Live Activity is showing old scores after 8 hours in iOS 16

Can anyone help why the old score is showing in live activity after 8 hours? I have added the live activity on Monday, 24 April 9:50 PM. It's working fine to update data properly via notification. But, I see old data in next morning. Old score…
3
votes
2 answers

React Native: How to detect phone with dynamic island?

Is it possible to target phones (iPhone 14 Pro and iPhone 14 Pro Max) with dynamic islands with React Native?
Kevin Amiranoff
  • 13,440
  • 11
  • 59
  • 90
3
votes
1 answer

Dynamic Island SwiftUI Animations

How can I implement swiftUI animations on a dynamic island icon? I want to do this: DynamicIsland() { ... } compactLeading: { Image("my-icon").shineEffect() } compactTrailing: { Image("my-icon") } Where in shine effect I start the animation…
annaoomph
  • 552
  • 1
  • 4
  • 22
2
votes
1 answer

SwiftUI - Dynamic Island - Why does the dynamic island takes the whole horizontal space in compact mode?

I have a stopwatch running in a dynamic island compact mode, using the same font and color. The first screenshot is an idle stopwatch, and the second screenshot is a running stopwatch. Idle state: Running state: I believe the correct state should…
Bar Malka
  • 550
  • 1
  • 4
  • 13
2
votes
1 answer

iOS dyld: Symbol not found: _NSUserActivityTypeLiveActivity

I'm adding support for LiveActivities/Widgetkit for my iOS app. I'm still supporting older versions for iOS 14+. When checking if the user returned to the app through the LiveActivity in my SceneDelegate: func scene(_ scene: UIScene, continue…
Suau
  • 4,628
  • 22
  • 28
2
votes
3 answers

Update Live Activity once per second - Swift

I'm searching for a way to update the Live Activity every second or every 2 seconds without using Push Notifications while keeping the app in background. Do you have any suggestions? I tried something like this, but after few seconds it's stop…
Pietro Messineo
  • 777
  • 8
  • 28
2
votes
0 answers

How to use the dynamic island(Live Activity) api in an existing app that still supports old iOS versions?

I created a Widget & a LiveActivity extension in my app. My app still supports iOS 10 and it's a pure objective-c project. So how I can use the LiveActivity API in my app. I tried to import LiveActiveWidget.swift in my objective-c project. When I…
Mars
  • 181
  • 1
  • 9
2
votes
1 answer

Live Activities / Dynamic island can't display images from Asset or Data

I can't achieve to display images from asset in live activities & dynamic island widgets. It's work very well with icon but not with image from asset or from UIImage (via Data). This works: Image(systemName: "timer") This NOT…
iStornZ
  • 603
  • 1
  • 8
  • 19
2
votes
1 answer

Video or GIF dynamic island - activitykit - SwiftUI

I started putting my hands-on the dynamic island and the activitykit and I already found out some limitations. I would love to play a GIF or a video (MP4) into the dynamic island when leaving the app. Like those nice animations that Apple made when…
Pietro Messineo
  • 777
  • 8
  • 28
2
votes
3 answers

Dynamic Island and iPhone14 Pro simulator

I saw that 9to5mac has done a brilliant article covering dynamic island and how it behaves in day-to-day uses. Wondering if there is any chance to test dynamic island on iPhone14 Pro simulator with Xcode RC candidate as they do. I tried but seems…
valvoline
  • 7,737
  • 3
  • 47
  • 52
1
vote
1 answer

Ending Live Activity in new iOS 16.2 ActivityKit API

I am following along the tutorial at https://www.youtube.com/watch?v=AUOoalBwxos However, the ActivityKit API used to start and end the live activity have been deprecated in iOS 16.2. I have figured out how to update the start method to the new API…
1
vote
0 answers

SwiftUI Button not fire the action inside the Dynamic island

I am attempting to trigger an action within a dynamic island by pressing a button, but the button is not functioning and no action is being executed. dynamicIsland: { context in DynamicIsland { // Expanded UI goes here. Compose the…
Simone
  • 11
  • 1
1
2