41,676 questions
- Bountied 1
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
41
views
iOS 26 How to add background colour to the liquid glass Swift ui,
How to add background to the button to archive above effect
.toolbar {
ToolbarItem(placement: .topBarTrailing) {
Button {
dismiss()
} ...
-3
votes
0
answers
66
views
SwiftUI Keyboard Toolbar not Displaying [closed]
I'm trying to display a toolbar with a done button on the keyboard. It works in isolation, but within the context of the app, the toolbar doesn't display.
The app has Home Screen View with buttons for ...
0
votes
1
answer
37
views
How to create Glass Effect TabView with kind of Switch button to update TabView with new Tabs?
Here is the code:
TabView {
Tab("", systemImage: "list.star") {
Text("star1")
}
Tab("", systemImage: ...
0
votes
0
answers
31
views
How do you trigger a window to be shown on mac when launching an app at login?
I have a swiftui app targeting mac-only (MacOS15 or higher). I provide a toggle to allow users to launch the app at login (using SMAppService.mainApp.register()). I can get the app to launch (it ...
1
vote
1
answer
42
views
PHPhotoLibrary.shared().performChanges crashes when trying to save image to photo library
I'm using PHPhotoLibrary.shared().performChanges {} to save an image to the photo library. The code works at Swift 5, however when switching to Swift 6 and clicking the save button I'm receiving the ...
4
votes
0
answers
81
views
Keyboard safe area ignored after NavigationStack pop - iOS 18 app on iOS 26
I have an issue on iOS 26 with an app built with iOS 18. After a navigation stack pop, the keyboard safe area is not being taken into account which causes UI to be obscured.
This happens on App Store ...
0
votes
0
answers
41
views
Is this the correct way to make font sizes dynamic in SwiftUI?
I’m trying to create a SwiftUI Font extension that adjusts font sizes dynamically based on device screen width. Here’s my current implementation:
import SwiftUI
extension Font {
private static ...
0
votes
0
answers
57
views
How to make a popover in principal placement behave the same as in primaryAction?
On iPadOS 26, the same .popover placed on a button in .principal placement behaves differently than when placed in .primaryAction. Take a look at this gif:
Notice how in the .primaryAction the ...
-1
votes
0
answers
86
views
Swiftui Picker showing unexpected options first time called (MacOS) [closed]
I have a parent-child-grandchild structure in a MacOS app:
The parent view (TransactionView) creates two state variables and calls an inspector, using @Bindable to pass the groupEdits object. This in ...
0
votes
2
answers
80
views
How to Eliminate Form Padding in NavigationStack
I have a form being loaded inside a navigation stack and I'm showing an image and title in the first form section with the code below:
Form {
Section {
VStack {
Image("...
-3
votes
0
answers
50
views
SwiftUI @State var not changing [closed]
I am trying to control if the status bar is visible in my application. I have created a @State var to hold a boolean to indicate if the status bar should be hidden. When I try to set the state var ...
-1
votes
0
answers
59
views
How can I replicate macOS 26's Journal app semantic date search? [closed]
In macOS 26's Journal app, users can search for entries by date. The app automatically recognizes dates. For example, it recognizes n weeks ago, last Monday, last month, last year, dates in text ...
0
votes
0
answers
36
views
MacOS - AppKit + SwiftUI - Liquid Glass Without Any Blur
I've been trying to set up liquid glass effect like on screenshot below and can't figure out how to do it. Tried official documentation methods even with .glassEffect(.clear) but got nothing.
-> ...
1
vote
1
answer
40
views
SwiftUI NavigationStack ToolbarItem shows unwanted circular background behind icon
I am trying to create a simple toolbar button in SwiftUI using NavigationStack, but it always shows an unwanted light circular/rounded background around the icon.
I want to remove the circular ...
1
vote
1
answer
104
views
SwiftUI Custom Popover Background Animation
How to prevent the button background darkening after closing a popover? The attached gif shows the button becoming darker before it resets to glass.
Here is the code for the button and the popover:
...