Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
0 answers
2 views

App Store Connect app stuck in “In Review” for more than 2 weeks — expedite and resubmission didn’t work

I have an app that has been stuck in the “In Review” stage for over 2 weeks on App Store Connect. Normally, my reviews take 24–48 hours, but this time it never progresses. Here’s what I have already ...
Jawad Saud's user avatar
1 vote
2 answers
38 views

How do I extend the background of child views to their parent without using GeometryReader and without affecting the natural height in SwiftUI

As you can see in the image below, I want the left (star) and right (sun) views’ backgrounds to fill their parent (HStack) without using GeometryReader or altering the HStack’s natural height. struct ...
Avii's user avatar
  • 75
0 votes
0 answers
24 views

Reloading another iOS widget's timeline from an AppIntent

I’m working with two iOS widgets (WidgetA and WidgetB) that both display the value of a flag stored in SwiftData. Each widget can update the flag by triggering an AppIntent when a button is pressed. ...
Petru Lutenco's user avatar
1 vote
0 answers
52 views

How to dynamically size TextEditor like TextField in SwiftUI

In SwiftUI, you can dynamically size a TextField like this which expands vertically as the user types. TextField("Enter text", text: $text, axis: .vertical) I would like to do the same thing ...
Berry Blue's user avatar
  • 16.9k
1 vote
1 answer
49 views

How to structure SwiftUI so that pages keep their state when switching between different UI layouts?

I have a SwiftUI view that switches between two completely different container layouts: a TabView layout (for compact width) a sidebar + content layout using HStack (for regular width). I am using a ...
Andrei Herford's user avatar
0 votes
0 answers
21 views

How to add multiple device-only xcframeworks to enable simulator run too in SwiftUI?

So, I have SwiftUI project, which is multi-modular project. All the modules are included in the form of SPM. Everything works fine until now when we are required to integrate third party sdks which ...
Abu Bäkr's user avatar
  • 343
1 vote
2 answers
45 views

Automatic Grammar Agreement with an In-line If Statement

Normally in Swift 5.5+, Automatic Grammar Agreement allows you to inflect a word based on the quantity of an associated numerical variable, such as the following: Text("I have ^[\(dogCount) dogs](...
tishly's user avatar
  • 55
0 votes
0 answers
60 views

How to make the ToolbarItemGroup in the toolbar group background clear and with glass effect? [closed]

How can I make the background of a ToolbarItemGroup clear with a glass (blur) effect in iOS 26? Is there a supported way to achieve this? I have tried to make the background clear but it didn't work ...
Mahmoud Abdelshafi's user avatar
-1 votes
0 answers
62 views

How to implement native Tab Bar search (.searchable) for a Dictionary view in SwiftUI? [closed]

I'm trying to implement native SwiftUI search for my Dictionary screen. The goal is simply to make .searchable show the system search UI (either the expanding tab-bar search, or the regular navigation ...
Ikhwan Pramuditha's user avatar
-4 votes
1 answer
51 views

How to move window control buttons (traffic light) in macOS SwiftUI [closed]

How to make it possible to place the buttons slightly below and to the right of a regular window without using (toolbar, navigationSpitView, etc) like in the Chrome or FireFox browsers the image ...
Evgeniy Petrukovich's user avatar
Advice
0 votes
0 replies
28 views

Implementation of view that covers predictive text panel

I am trying to place a custom view so that it will cover, partially, predictive text panel from the iOS keyboard. However i can't seem to manage implementing it, the predictive text panel is always ...
Andrew's user avatar
  • 55
-1 votes
0 answers
30 views

Smooth page scrolling with drag gesture

The issue I'm having is that, even though scrolling with the trackpad and the drag gesture both work to flip through pages in the scrollview, the animation when landing on a page is jerky and not ...
KaliforniaGator's user avatar
0 votes
0 answers
22 views

NLTagger sentimentScore always returns 0.0 [closed]

I’m using NLTagger with the .sentimentScore tag scheme to analyze text sentiment. The setup is straightforward, and the code looks like this: import NaturalLanguage struct Scorer { let tagger = ...
Shubham B's user avatar
0 votes
0 answers
36 views
+200

SwiftUI horizontal drag-to-reorder view feels jittery – how can I make the drag smooth?

I’m building a horizontal “carousel” style view in SwiftUI where items can be reordered by dragging (similar to an editor timeline). The basic idea: Items are laid out in a horizontal track inside a ...
Hector's user avatar
  • 3,609
1 vote
0 answers
41 views

Error running application, ”request was denied by service delegate” [duplicate]

I am getting this error after my application installs on IOS Simulator then it fails to launch the application on it. It seems the app is crashing just after launching and my mac or simulator are ...
Ashish Sarraf's user avatar
Best practices
0 votes
0 replies
20 views

Apple WatchOS: Adopt watchface background for complication

On the California watchface (white) there are two complication slots. The upper one is seemingly not a standard slot and limited to a few Apple-owned apps (Calender, Time, …). It adopts the (default ...
habitoti's user avatar
  • 239
Best practices
1 vote
2 replies
49 views

What is the best pattern for SwiftUI Document Application?

I am trying to create a full SwiftUI Document app (using swift 6, as it matters). Apple doc says that the Document init(configuration:)and fileWrapper(configuration:)are called on a background thread -...
AirXygène's user avatar
  • 3,041
Best practices
0 votes
0 replies
20 views

SwiftUI displaying sublocality to users since ".placemark, CLPlacemark, CLGeocoder" are deprecated

I had an app where, based on the users location, his/her sublocality was displayed. func getUserSubLocality() async { do { if let request = MKReverseGeocodingRequest(location: userLocation)...
SPR's user avatar
  • 43
Best practices
0 votes
2 replies
42 views

How to preserve View state when switching between completely different SwiftUI layouts?

My app uses different layouts depending on device orientation. For example: in portrait: a TabView-based layout in landscape: a NavigationSplitView-style layout When switching between these layouts, ...
Andrei Herford's user avatar
1 vote
1 answer
57 views

Toolbar showing behind tabbar in ios26

Updating apps for iOS 26. Noticed that the toolbar (bottom placement) is laid out behind the tab bar in iPhone. So, in portrait mode you can't see the toolbar buttons. You can see them in landscape ...
Phantom59's user avatar
  • 1,117
0 votes
0 answers
50 views

Selected image from pagination not correctly showing in Preview screen

I have a pagination for grid where selected image not correctly showing this is servicecall: @Published var isLoadingPage = false func getPhotosAlbumDetails(ID: String, resetPage: Bool, showHud: Bool ...
Swift's user avatar
  • 1,180
0 votes
0 answers
32 views

How to get rid of this view artifact from NSHostingView caused by when the SwiftUI view moves?

I have view and a NSWindow that contains a moving SwiftUI view via NSHostingView (simplified): struct ContentView: View { var body: some View { Button("Show") { let ...
Radioactive's user avatar
0 votes
0 answers
22 views

NSTextField without bezel - text beginning cut off when editing

In MacOS app I need a transparent textfield, that shows only editable text and nothing else. I am using SwiftUI, but to achieve this, I have created NSViewRepresentable for NSTextField. This is how my ...
Kaven's user avatar
  • 491
0 votes
1 answer
59 views

Workaround to fix Menu component animation glitch when its label is set to value selected in iOS26

For more customization, I made my own menu style Picker in SwiftUI using a Menu component. This is the bare bones version of it that allows the user to select a color: Menu { ForEach(Color....
Ser Pounce's user avatar
  • 14.3k
0 votes
0 answers
20 views

onGeometryChange on scrollview in swiftui availability issue [closed]

`onGeometryChange` The feature is showing as available only on iOS 18, whereas Apple’s documentation states that it should be supported from iOS 16 onwards. I’m currently building with SDK 26, so I’...
Ankit Srivastava's user avatar
1 vote
1 answer
63 views

SwiftUI: Button role: cancel doesn't show ("IOSurfaceClientSetSurfaceNotify failed")

I made the following confirmation dialog: struct ContentView: View { @State var isConfirmShown = false var body: some View { VStack { Button("Display Confirm"...
mewi's user avatar
  • 791
2 votes
1 answer
46 views

iOS Picture-in-Picture stops unexpectedly despite using AVPlayerLooper - How to keep PiP running continuously?

I'm building a teleprompter app that uses iOS Picture-in-Picture (PiP) to display scrolling text while users record videos with the camera app. The text is rendered into a video which plays in PiP ...
li meng's user avatar
  • 21
0 votes
1 answer
74 views

Unable to change value of @State variable [closed]

I'm writing a maze game in swift playground. I've defined a @State variable: @State var gameStarted: Bool = false When an on-screen arrow is pressed, I call a function movePlayer() that sets ...
dkimble's user avatar
  • 67
1 vote
1 answer
77 views

How to keep the toolbar picker on the top while navigating to a deeper level view?

My SwiftUI app uses a Project List in the Sidebar (NavigationSplitView) and a toolbar picker on the detail view. Using this picker I can switch between different subviews (modules) for the detail view....
Benji's user avatar
  • 3
-3 votes
0 answers
42 views

MacOS: Using TextEditor with AttributedString uses wrong selection highlight colour in dark mode?

I am using the new AttributedString in Swift 26 with a TextEditor in dark mode to track selections for a qualitative data analysis tool. ISSUE: In dark mode, the highlight colour inherited from system ...
Bhorda's user avatar
  • 15
0 votes
1 answer
57 views

Using App Groups with @AppStorage wrapper

I am writing a custom keyboard extension along with a container app. I would like the user to be able to configure some settings and preferences through the container app and have these settings be ...
Churro the Duck's user avatar
Advice
0 votes
1 replies
25 views

Keep view on VisionOS visible while the user is looking at it

I have an ornament on visionOS that auto-hides. Can I detect if the user is looking at it to keep it visible? Ideally, it would also appear when they look at its location—similar to how the tab view ...
fer0n's user avatar
  • 1,303
0 votes
2 answers
108 views

ScrollView behaviour

Want B over A in Zstack, Offset of scroll needs to be 200 (height of A). Either B is pinned to top and has 200 offset or B starts at 200 y position and as we scroll up its y also changes, so after 200 ...
Ankit Srivastava's user avatar
0 votes
1 answer
103 views

Why does SwiftUI re-render all ForEach items in view

I'm building a small SwiftUI view with a list of CardView items that use a shared @Binding from an @Observable model. When I tap one button, all the items in the ForEach are re-rendered. I'm trying to ...
miltenkot's user avatar
  • 339
0 votes
1 answer
41 views

How can I control text color in a SwiftUI widget when in tinted mode?

Is there a way to control the text color of a SwiftUI widget even when the iPhone is in tinted mode or clear mode? I have a widget that looks fine in Default mode, but when the the user switches to ...
sapir1126's user avatar
0 votes
1 answer
88 views

iOS 26 crash with _UIRemoteKeyboardPlaceholderView constraints

I've been seeing these crashes popping up quite often for all versions of iOS 26, including the 26.2 beta. Anyone else has this issue and know how to find the issue? There is no crash for earlier ...
Son Nguyen's user avatar
  • 1,690
0 votes
0 answers
37 views

SwiftUI .refreshable causes misaligned button tap targets in ScrollView

I have a ScrollView with several Buttons and a .refreshable modifier. As soon as I pull to refresh and the refresh indicator appears, the tap targets no longer match the visible button positions. For ...
mbuchetics's user avatar
  • 1,450
1 vote
1 answer
54 views

Picker styles and dismissing keyboards

I have been looking at how to explicitly dismiss a keyboard while allowing a picker on the same form to actually work. There are already various solutions on here that solve my issue, and I have a ...
Peter M's user avatar
  • 7,583
2 votes
2 answers
65 views

Conditional TabViewBottomAccessory

In iOS 26 I could have an optional TabViewBottomAccessory by using this code: TabView { ... } .tabViewBottomAccessory { if someCondition { SomeView() } } When the condition was ...
Meyssam's user avatar
  • 931
0 votes
0 answers
93 views

Compilation Error with ToolbarContent Extension

I created an extension on ToolbarContent in order to simplify code when using new SDKs technologies. public extension ToolbarContent { @available(iOS 17, macOS 13, *) @ToolbarContentBuilder ...
Meyssam's user avatar
  • 931
Best practices
0 votes
1 replies
46 views

NavigationStack, NavigationLink, Path

I have read and seen a lot of things on "NavigationStack" and I can't solve the following: I have three "Views", A B and C. I have two buttons in A. With one I go to B and it's OK,...
xlubmon's user avatar
0 votes
0 answers
41 views

How can I remove vertical alignment on ARSCNView in iOS26 ? Uncertain alignment was produced in initial project after updating iOS26

When I run an ARSCNView session on iOS 26, I notice unexpected vertical margins at the top and bottom of the screen. Could you please explain why this happens and how I can make the ARSCNView fill ...
simd-float4x4's user avatar
-1 votes
0 answers
54 views

SwiftUI Glass Effect Tint Color Disappears

Does anyone know why glassEffect with a tint color works when the app is foregrounded but disappears when backgrounded or while in the app switcher? I've tested this on iOS 26.0 and 26.1. When the app ...
Richard Witherspoon's user avatar
1 vote
1 answer
51 views

Swift charts - scrolling does not work while using .chartXSelection (or) .chartYSelection modifiers

I also tried using the .chartOverlay modifier and used the .onTapGesture modifier to get the point and the value. But the view, as expected, blocked the chart and thereby restricted the chart scroll ...
Sundara Aadithyan's user avatar
0 votes
1 answer
59 views

SwiftUI can't have working rounded corners with AsyncImage and ultra-wide images

I am trying to display a list of images from panoramic webcams with following display constraints: rounded corners 16/9 aspect ratio center crop scale type (image is centered and cropped to fill ...
Mackovich's user avatar
  • 3,659
0 votes
0 answers
55 views

AppCheck does not work as expected with Google Sign-In SDK

I have this code to use AppCheck with Google Sign-In: class SimpleAppCheckProviderFactory: NSObject, AppCheckProviderFactory { func createProvider(with app: FirebaseApp) -> AppCheckProvider? { ...
Tarasovych's user avatar
  • 2,398
0 votes
1 answer
62 views

Call ShareUI programmatically [duplicate]

For my app, I have a list of transactions that can be exported as CSV or PDF. For the CSV I use this ShareLink ShareLink(item: exportData()){ Label("Export CSV", systemImage: "list....
Max B's user avatar
  • 400
0 votes
0 answers
201 views

Updating UI 30 times per second is using more CPU than expected [closed]

The code below is a test to trigger UI updates every 30 seconds. I'm trying to keep most work off main and only push to main once I have the string (which is cached). Why is updating SwiftUI 30 times ...
user1542125's user avatar
0 votes
1 answer
49 views

Rive RiveRuntime crash IOS when try to load a file with multiple artboard

I have a .riv file with two artboards (see screenshot): • Button Play • Stars In SwiftUI I’m loading it with RiveRuntime. If I don’t specify an artboard, it loads the first artboard (Button Play) ...
Damiano Miazzi's user avatar
0 votes
0 answers
48 views

CoreData's automaticallyMergesChangesFromParent causes SwiftUI view to update twice

I have the following CoreData stack in my app: let mom = NSManagedObjectModel(contentsOf:modelURL)! managedObjectContext = NSManagedObjectContext(concurrencyType:.mainQueueConcurrencyType) ...
Andriy Gordiychuk's user avatar

1
2 3 4 5
836