336,306 questions
-4
votes
0
answers
36
views
How to implement backup/restore to icloud in a flutter ios app [closed]
I am trying to implement a backup/restore facility in my flutter app. I have all the app data in a zip file and I am trying to use Cloudkit to send and receive this file to the user's iCloud account, ...
0
votes
0
answers
16
views
RealityKit CollisionFilter: left and right child colliders both firing when only one is touched
I’m working with RealityKit and trying to detect on which side of a connector a sphere has collided.
The setup:
I have a connector (a cylinder).
It has two child entities, each one with its own ...
-3
votes
0
answers
29
views
How to test Future Publisher with unit tests?
This is my simple class I need to test:
class Example: ObservableObject {
@Published var isError = false
var cancellable: AnyCancellable?
private let failure: Bool
// MARK: - ...
-2
votes
0
answers
24
views
How to use custom version of swift in Xcode? [duplicate]
I am using Mac 14 and the highest version of Xcode that I can install is 16.2
And it comes with the bundled swift component - 6.0.3 version.
But my project requires swift 6.2 or later.
I was able to ...
2
votes
1
answer
63
views
SwiftData update causes render with initial data overwriting changes
I'm working on a SwiftUI app using SwiftData, and I'm very new to both frameworks, and swift in general to be honest. I'm trying to create a webview that embeds a monaco editor that will then send the ...
0
votes
0
answers
41
views
How to implement long press (minimum duration) for iOS widget buttons?
I've seen apps that have interactive widget buttons where a short tap does nothing, but holding the button for at least 1 second executes the action. This can be configured per button in the widget ...
1
vote
0
answers
28
views
Custom UITabBar badge color ignored when switching to Map tab in iOS 18+
I found a reproducible issue in iOS 18+. When a SwiftUI TabView contains a Map (MKMapView), any custom UITabBarAppearance badge color is ignored while that tab is active. As soon as you switch to a ...
1
vote
2
answers
75
views
SwiftUI @FocusState doesn’t focus a desired TextField
I have a SwiftUI view with multiple TextFields and a @FocusState bound to my view model. I want the first field to automatically get focus whenever the view appears(when coming back from a SecondView)....