336,180 questions
Score of 0
1 answer
123 views
Activity View Controller Services icons are too large on iOS 26 devices
On a bare bones View Controller with nothing but a 'right bar button' for sharing, when the Share Sheet comes up, the services icons are simply too large and overlapping each other on iOS 26+ devices ...
Score of 1
0 answers
45 views
HKStatisticsCollectionQuery initialResultsHandler returns nil results for one specific user — read auth granted, data exists, survives reinstall
Environment: iPhone 13 Pro, iOS 26.5. Affects a single user out of many; cannot reproduce on any of our test devices.
We use HKStatisticsCollectionQuery to read step counts for a statistics screen. ...
Score of 1
1 answer
51 views
Should encodeRestorableState(with:backgroundQueue:) encode synchronously or use the provided background queue?
I am using AppKit state restoration and I am trying to understand the intended usage of:
override func encodeRestorableState(with coder: NSCoder, backgroundQueue queue: OperationQueue)
Most examples ...
Score of -1
0 answers
54 views
UIAccessibility: Voice over for buttons interrupts gameplay
I am making a game app where the player answers a question (by clicking a button) and then the next question immediately appears.
This is working fine in its normal state, but I cannot get it to ...
Score of 0
1 answer
97 views
SwiftUI parent onTapGesture intercepts taps from embedded AVPlayerViewController
I'm embedding an AVPlayerViewController via UIViewControllerRepresentable inside a SwiftUI view hierarchy that has a parent .onTapGesture.
On some old iOS versions, taps on the video player are also ...
Advice
1
vote
3
replies
121
views
Are there any ways to prevent app record/capture on macOS
I'm looking for a way to prevent my app from displaying in screenshots and screen recordings. There appears to be plenty of options for UIKit/iOS but nothing I can find for macOS.
...
Score of 0
0 answers
78 views
Calling function in a View from a menu item
I must be overlooking something obvious because this has to be a common use case. I have some UI within a View that calls a function defined in the View. I would also like to call this same function ...
Score of 0
1 answer
116 views
How to make headerView with overlapping content design in SwiftUI
I need half of Header View to be covered with remaining UI. I am using header view and list according to UI design and given list top padding in (- value) so it goes up on header view now UI looks ...
Score of 1
1 answer
92 views
iOS 27: App freezes when accessing CLLocationManager.authorizationStatus()
I'm running into a strange issue that only occurs on iOS 27.
I have a basic LocationManager implementation:
import Foundation
import CoreLocation
import UIKit
class LocationManager: NSObject, ...
Score of 0
0 answers
81 views
How to match the width of sheets in swiftUI to match the background?
I am calling the apple sheet api but in the current implementation i am getting the padding around the sheet as its the ios26 design but i dont want it. how can we remove this
Required Implementation
...
Score of 0
0 answers
81 views
Quirk to using Swift Sets with Hashable objects [duplicate]
I wanted to use a Set to track objects that contained a unique key value but variable data. The docs on Set say the objects you store in it must conform to Hashable. However, if you create an object ...
Score of 3
0 answers
147 views
How can I apply focus styling to an entire search view when the TextField is focused?
I'm currently adding macOS and visionOS support to my SignDict. Everything looks perfect on iPadOS, but I'm seeing an issue on macOS.
I have a custom search view in the SwiftUI with a ToolbarItem:
...
Score of 3
1 answer
213 views
iOS 26/27 SwiftUI — how to get the “search as a tab” morph (tabs collapse left + search field at the bottom) with a separated search tab?
I'm building a SwiftUI app on Xcode 26/27 (beta), targeting iOS 26 / iOS 27, and I want the exact “search as a tab” behavior that Apple's own apps use (Phone, News, Health, Music): a search tab that ...
Score of 0
1 answer
109 views
Xcode debugger freezes with "error: memory read failed for 0x0" on iOS 27 and tvOS 27 devices
I'm experiencing an issue when debugging my app on a physical device running iOS 27 (also reproducible on tvOS 27).
The app itself runs correctly, but Xcode gets stuck during debugging. The Project ...
Score of 0
1 answer
107 views
Swift package is not loading and giving dyld[11588]: Library not loaded: @rpath/libinference_engine.dylib error
I am trying to use LeapSDK iOS Swift SDK to run leap on device models. My app is building but upon running it is giving the following errors:
Library not loaded: @rpath/libinference_engine.dylib
...