Post

Replies

Boosts

Views

Activity

Reply to Implementing Dynamic Island support - Generic parameter 'Expanded' could not be inferred
According to the documentation, the argument expanded in DynamicIsland should implement DynamicIslandExpandedContentBuilder, instead of @ViewBuilder like the remaining others. So, I suggest you implement something like the following snippet: DynamicIsland { // Create the expanded presentation. DynamicIslandExpandedRegion(.leading) { EmptyView() } DynamicIslandExpandedRegion(.trailing) { EmptyView() } DynamicIslandExpandedRegion(.bottom) { EmptyView() } } compactLeading: { // Create the compact leading presentation. EmptyView() } compactTrailing: { // Create the compact trailing presentation. EmptyView() } minimal: { // Create the minimal presentation. EmptyView() } } I hope this helps you.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’23