336,326 questions
0
votes
0
answers
17
views
iOS 26.1: Modal swipe-to-dismiss freezes on iPhone 14 Pro Max / iPhone 17 / iPhone 17 Pro Max but works on iPhone 11 / iPhone 16e
.pageSheet interactive swipe-to-dismiss freezes when UIDesignRequiresCompatibility = YES on specific iPhone models (iOS 26.x)
Area
UIKit → View Controller Presentation
Type of Issue
Serious Bug (App ...
0
votes
0
answers
19
views
CAShapeLayer strokeEnd causes ring flash on tap – how to stop border flash on custom circular progress button (UIKit)?
I have a custom circular play/pause button in UIKit that uses CAShapeLayer as a progress ring.
Everything works except when I tap the view, the border briefly flashes even though strokeEnd = 0 and ...
0
votes
0
answers
24
views
Why can’t a SwiftUI container determine the concrete type of the currently visible child view?
I’m building a SwiftUI app and trying to determine the currently visible screen name at runtime for debugging and internal tooling.
My navigation structure is fixed and uses a shared container/base ...
-1
votes
0
answers
54
views
'init(traitsFrom:)' was deprecated in iOS 17.0, How do I use the new UITraitCollection.init(mutations:)?
I am using this file from swift-snapshot-testing library. After updating my project to iOS 26, I need to fix all the warnings. But I am not sure how to fix this one:
'init(traitsFrom:)' was ...
-1
votes
0
answers
38
views
How to securely store the license key based purchases?
I am trying to implement license key logic in my app where users can enter the license key they bought from stripe or any payment provider and than, the entered license key would need to first ...
0
votes
0
answers
42
views
iOS PDF Kit PDF Compression not reducing PDF Size
I am trying to compress the PDF (to reduce its storage size) and using following code but instead of decreasing storage size, it is increasing it:
import Foundation
import PDFKit
import CoreGraphics
...
1
vote
0
answers
48
views
How to damp `linearDamping` in horizontal (x/z) axes only in RealityKit's physics
In RealityKit, there's a linearDamping that slows down physics velocity with a "drag" effect (or it feels like making the air "thicker").
For example:
var body = ...
Advice
0
votes
0
replies
32
views
AppIntent's perform method to return custom type
Overview
I have a custom type `Statistics` that has 3 properties inside it
I am trying to return this as part of the AppIntent's `perform` method
struct Statistics {
var countA: Int
var ...
2
votes
0
answers
101
views
+100
Smooth horizontal autoscroll while dragging near edges (keep item under finger)
I have a SwiftUI horizontal editor (multiple “canvases” laid out side‑by‑side in a ScrollView). When the user drags a selected object and reaches the left/right edge of the visible area, I want the ...
0
votes
1
answer
62
views
In RealiktKit we are creating objects with MeshResource but we are unable to set different materials for different faces
Using following blocks we are creating front and back of an entity. They are same polygons with some -z distance between them.
We see both side of it when we rotate entity in scene.
Looks like both ...
1
vote
0
answers
73
views
Why does NSEvent.addGlobalMonitorForEvents still work in a Sandboxed macOS app
I am building a macOS utility using SwiftUI and Swift that records and displays keyboard shortcuts (like Cmd+C, Cmd+V) in the UI. To achieve this, I am using NSEvent.addGlobalMonitorForEvents(matching:...
3
votes
0
answers
62
views
Modifying input audio
Is there a way to make audio sound robotic or put some other effects? For example, I have the code, that reverses the audio. But i manually modify it. Is there any library available?
The reverse ...
0
votes
1
answer
69
views
Swift Testing - load data before the tests start
This is a follow-up to a previous question: Xcode XCTestCase - wait for setup to complete before starting tests
In the comments it was suggested to switch to Swift Testing instead of using XCTestCase, ...
3
votes
1
answer
75
views
When storing a property with @Attribute(.externalStorage) can we get the url of the file?
In SwiftData, the .externalStorage attribute signifies that we can easily store any binary data adjacent to the database. This seems like a great way to have easily downloaded/cached files. However, ...
-3
votes
1
answer
72
views
How to apply a background outside a rounded view’s corner radius? [closed]
I’m learning how to build a Toast notification for an iOS app using SwiftUI.
I can’t figure out how to draw a background outside the rounded view — specifically, I need a colored sidebar behind the ...