Questions tagged [swift]
Swift is a general-purpose programming language developed by Apple Inc first released in 2014 for its platforms and Linux. Swift is open-source. Use the tag only for questions about language features or requiring code in Swift. Use the tags [ios], [ipados], [macos], [watch-os], [tvos], [swiftui], [cocoa-touch], and [cocoa] for (language-agnostic) questions about the platforms or frameworks.
swift
3
questions with bounties
-1
votes
2
answers
98
views
+50
Check iPhone vs iPad device type on background thread
I have this code:
public enum DeviceUtil {
public static var isPhone: Bool {
return UIDevice.current.userInterfaceIdiom == .phone
}
}
And I got warning saying UIDevice API has to be on the ...
0
votes
1
answer
56
views
+300
Mac menu bar app crashing on app launch as notarized app only: failed to get text offset for /Applications/... (#3) No such process
I am developing a macos menu bar app, and for some reason, when I archive, notarize & export the app to my Applications folder and run the app, it crashes instantly. When I use the Console app, I ...
0
votes
0
answers
57
views
+50
TabView style causes jitter during gesture
I have a basic tabview that contains photos, when I add the page tab view style or any style to the tabview then the image jitters when dragged down. If I remove the tab view style modifier the jitter ...