Post

Replies

Boosts

Views

Activity

Reply to Glass Effect Label Shadow Clipping During Morph Animation
If you’re set on using native views in iOS 26 (rather than custom LiquidContainers) and have encountered visual glitches, like shadow clipping or view hierarchy issues, when applying .glassEffect to Menu labels, this thread should be helpful. After some research, I found a useful suggestion on Stack Overflow. TLDR; Wrapping your label in .compositingGroup() significantly improves rendering, especially when using more complex labels inside a Menu. To achieve the cleanest appearance, I recommend combining .compositingGroup() with .glassEffect(.clear). Here’s a sample demonstrating this approach: Menu { Button("Duplicate", action: {}) Button("Rename", action: {}) Button("Delete…", action: {}) } label: { VStack(alignment: .leading) { Text("Title") .tint(.primary) Text("Subtitle") .tint(.secondary) } .frame(maxWidth: .infinity, alignment: .leading) .padding() .glassEffect(.clear) } .compositingGroup()
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’26
Reply to Glass Effect Label Shadow Clipping During Morph Animation
It seems like there are two ways of approaching this. One (bad one) is: Adding the padding on the label view to compensate the native shadow. Menu { Button("Duplicate", action: {}) Button("Rename", action: {}) Button("Delete…", action: {}) } label: { Label("PDF", systemImage: "doc.fill") .padding() .glassEffect(.regular) .padding(40) // <- Here } Another one, much better: Menu { Button("Duplicate", action: {}) Button("Rename", action: {}) Button("Delete…", action: {}) } label: { Label("PDF", systemImage: "doc.fill") .padding() .glassEffect(.clear) } Both have tradeoffs, one is a spatial one, since you have to provide space for it, but maybe useful for someone who is not constrained by space. Another one - visual, since the glass effect .clear, doesn't have a frost. I guess this could be improved by overlaying a white color with low opacity to simulate the same effect.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’26
Reply to Is realtime multidevice persistence possible using SwiftData?
Even though this doesn’t provide a direct solution for cross-device real-time database persistence, it may simulate the behavior you’re looking for. If both devices are on the same network, you can leverage the MultipeerConnectivity framework to send data to other devices immediately and then persist it locally. This way you can achieve a “live update” experience within the Apple ecosystem, while still using SwiftData for storage.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’25
Reply to Foundation Models flags 'Six Flags Great America' as unsafe
Hello Benjamin, I hope you’re doing well. Several posts by the developers, including myself, have raised concerns about an issue that seems to have arisen since installing iOS 26 Beta 3. Specifically, FoundationModels is intermittently throwing guardrail violations on otherwise harmless prompts. For example, Apple’s own sample app from the “Foundation Code-Along” session now fails with the same error. FoundationModels guardrailViolation on Beta 3 Community members on the forums have tested a variety of queries and found wildly inconsistent results—asking “What’s the population of New York?” succeeds, whereas “What’s the population of Sweden?” triggers a guardrailViolation or a GenerationError (see these threads for details): "FoundationModels GenerationError error 2" on iOS 26 beta 3 So far, the only official responses have been generic reminders about prompt safety, which don’t explain why simple factual questions are being blocked. Given Apple’s two-week beta cadence, I’m optimistic that this behavior will be addressed in the next release.
Jul ’25
Reply to Bottom toolbar Button truncated on Mac Catalyst 26
Tell me if I am crazy, but the buttons on the left look like AppKit to me... Could be something related to that maybe?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’26
Reply to Glass Effect Label Shadow Clipping During Morph Animation
If you’re set on using native views in iOS 26 (rather than custom LiquidContainers) and have encountered visual glitches, like shadow clipping or view hierarchy issues, when applying .glassEffect to Menu labels, this thread should be helpful. After some research, I found a useful suggestion on Stack Overflow. TLDR; Wrapping your label in .compositingGroup() significantly improves rendering, especially when using more complex labels inside a Menu. To achieve the cleanest appearance, I recommend combining .compositingGroup() with .glassEffect(.clear). Here’s a sample demonstrating this approach: Menu { Button("Duplicate", action: {}) Button("Rename", action: {}) Button("Delete…", action: {}) } label: { VStack(alignment: .leading) { Text("Title") .tint(.primary) Text("Subtitle") .tint(.secondary) } .frame(maxWidth: .infinity, alignment: .leading) .padding() .glassEffect(.clear) } .compositingGroup()
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’26
Reply to Glass Effect Label Shadow Clipping During Morph Animation
It seems like there are two ways of approaching this. One (bad one) is: Adding the padding on the label view to compensate the native shadow. Menu { Button("Duplicate", action: {}) Button("Rename", action: {}) Button("Delete…", action: {}) } label: { Label("PDF", systemImage: "doc.fill") .padding() .glassEffect(.regular) .padding(40) // <- Here } Another one, much better: Menu { Button("Duplicate", action: {}) Button("Rename", action: {}) Button("Delete…", action: {}) } label: { Label("PDF", systemImage: "doc.fill") .padding() .glassEffect(.clear) } Both have tradeoffs, one is a spatial one, since you have to provide space for it, but maybe useful for someone who is not constrained by space. Another one - visual, since the glass effect .clear, doesn't have a frost. I guess this could be improved by overlaying a white color with low opacity to simulate the same effect.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’26
Reply to Is realtime multidevice persistence possible using SwiftData?
Even though this doesn’t provide a direct solution for cross-device real-time database persistence, it may simulate the behavior you’re looking for. If both devices are on the same network, you can leverage the MultipeerConnectivity framework to send data to other devices immediately and then persist it locally. This way you can achieve a “live update” experience within the Apple ecosystem, while still using SwiftData for storage.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to FoundationModels tool calling not working (iOS 26, beta 6)
I am also experiencing issues with tool calling. Not sure what is the issue yet, but what has been answered to you is checked on my code. It used to work perfectly before the change to the new tool output format.
Replies
Boosts
Views
Activity
Aug ’25
Reply to Rate limit exceeded when using Foundation Model framework
I encounter the same issues. Also some strange haptics errors?
Replies
Boosts
Views
Activity
Jul ’25
Reply to Foundation Models flags 'Six Flags Great America' as unsafe
Hello Benjamin, I hope you’re doing well. Several posts by the developers, including myself, have raised concerns about an issue that seems to have arisen since installing iOS 26 Beta 3. Specifically, FoundationModels is intermittently throwing guardrail violations on otherwise harmless prompts. For example, Apple’s own sample app from the “Foundation Code-Along” session now fails with the same error. FoundationModels guardrailViolation on Beta 3 Community members on the forums have tested a variety of queries and found wildly inconsistent results—asking “What’s the population of New York?” succeeds, whereas “What’s the population of Sweden?” triggers a guardrailViolation or a GenerationError (see these threads for details): "FoundationModels GenerationError error 2" on iOS 26 beta 3 So far, the only official responses have been generic reminders about prompt safety, which don’t explain why simple factual questions are being blocked. Given Apple’s two-week beta cadence, I’m optimistic that this behavior will be addressed in the next release.
Replies
Boosts
Views
Activity
Jul ’25
Reply to Issue with #Playground and Foundation Model
Fixed on Xcode beta 2
Replies
Boosts
Views
Activity
Jul ’25
Reply to Issue with #Playground and Foundation Model
The issue seem to persist on the Tahoe Beta 3 @DTS Engineer I will submit the report shortly.
Replies
Boosts
Views
Activity
Jul ’25
Reply to Issue with #Playground and Foundation Model
Also running the same exact code that runs fine on the mac simulator on iPhone simulators with iOS 26 result in this error: guardrailViolation(FoundationModels.LanguageModelSession.GenerationError.Context(debugDescription: "Safety guardrail was triggered after consecutive failures during streaming.", underlyingErrors: []))
Replies
Boosts
Views
Activity
Jul ’25