id stringlengths 7 11 | source stringclasses 1
value | category stringclasses 11
values | title stringlengths 15 214 | text stringlengths 70 30.5k | url stringlengths 57 160 | tags stringlengths 3 113 | created_at int64 1.22B 1.79B |
|---|---|---|---|---|---|---|---|
se_67505273 | stackoverflow | MOBILE_DEVELOPMENT | StripeInvalidRequestError: No such setupintent: 'seti_...' | StripeInvalidRequestError: No such setupintent: 'seti_...'
After a user registers on my app I want them to add a payment method. Their stripe customer account is created as soon as they register and from there they are transferred to the 'AddPaymentMethod' screen. As soon as the ' AddPaymentMethod' screen appe... | https://stackoverflow.com/questions/67505273/stripeinvalidrequesterror-no-such-setupintent-seti | node.js, swift, google-cloud-functions, stripe-payments | 1,620,828,414 |
se_79925194 | stackoverflow | MOBILE_DEVELOPMENT | RealityKit Complains "Could not locate file 'default-binaryarchive.metallib' in bundle." | RealityKit Complains "Could not locate file 'default-binaryarchive.metallib' in bundle."
I am getting following warning while woking with UIView ArVİew app:
Could not locate file default-binaryarchive.metallib in bundle.
The thing is in an other UIView + ArVİew app we don't receive it.
I tried to f... | https://stackoverflow.com/questions/79925194/realitykit-complains-could-not-locate-file-default-binaryarchive-metallib-in | ios, swift, realitykit, arview | 1,776,152,620 |
se_75793978 | stackoverflow | MOBILE_DEVELOPMENT | Context menu is not working properly when in VStack that's in a List in SwiftUI | Context menu is not working properly when in VStack that's in a List in SwiftUI
First, I'd like to emphasize that with a ScrollView instead of List, this issue doesn't happen.
I have created this test code:
import SwiftUI
struct ContentView: View {
var body: some View {
List {
VStack { //t... | https://stackoverflow.com/questions/75793978/context-menu-is-not-working-properly-when-in-vstack-thats-in-a-list-in-swiftui | ios, swift, list, swiftui | 1,679,336,599 |
se_56568967 | stackoverflow | MOBILE_DEVELOPMENT | Detecting sheet was dismissed on iOS 13 | Detecting sheet was dismissed on iOS 13
Before iOS 13, presented view controllers used to cover the entire screen. And, when dismissed, the parent view controller viewDidAppear function were executed.
Now iOS 13 will present view controllers as a sheet as default, which means the card will partially cover the underly... | https://stackoverflow.com/questions/56568967/detecting-sheet-was-dismissed-on-ios-13 | ios, swift, uiviewcontroller, uikit, ios13 | 1,560,366,929 |
se_57006663 | stackoverflow | MOBILE_DEVELOPMENT | Could not get GOOGLE_APP_ID in Google Services file from build environment | Could not get GOOGLE_APP_ID in Google Services file from build environment
For setting up firebase i am using two config 1.GoogleService-Info-test.plist, 2.GoogleService-Info-prdn.plist for UAT and Production. For installing crashlytics using firebase i have followed firebase documentation https://firebase.google.com/... | https://stackoverflow.com/questions/57006663/could-not-get-google-app-id-in-google-services-file-from-build-environment | ios, swift, firebase, crashlytics | 1,562,933,135 |
se_79925892 | stackoverflow | MOBILE_DEVELOPMENT | .keyboardShortcut in SwiftUI Sheet not working when presented from NavigationSplitView detail wrapped in container view (Mac Catalyst) | .keyboardShortcut in SwiftUI Sheet not working when presented from NavigationSplitView detail wrapped in container view (Mac Catalyst)
I'm building a Mac Catalyst app using SwiftUI. I have a .keyboardShortcut modifier on a Button inside a Sheet. The shortcut works fine in most cases, but fails silently when the sheet ... | https://stackoverflow.com/questions/79925892/keyboardshortcut-in-swiftui-sheet-not-working-when-presented-from-navigationspl | swift, swiftui, keyboard-shortcuts, mac-catalyst, swiftui-navigationsplitview | 1,776,246,722 |
se_79026791 | stackoverflow | MOBILE_DEVELOPMENT | Keep old TabView style in iOS / iPadOS 18.1 | Keep old TabView style in iOS / iPadOS 18.1
Running the app in iPad with iPadOS 18.1, it shows the TabView in a different layout and position.
I want to keep the Bottom TabView using full width with icons.
Does Apple is removing the old style and forcing us to implement a custom TabView, or use a new one?
I already t... | https://stackoverflow.com/questions/79026791/keep-old-tabview-style-in-ios-ipados-18-1 | ios, swift, swiftui, ipad, ipados | 1,727,346,363 |
se_79925440 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI Date.FormatStyle doesn't work with alternate Calendars | SwiftUI Date.FormatStyle doesn't work with alternate Calendars
I'm trying to get SwiftUI to format dates in two different calendars using Date.FormatStyle, but I can't get it to work. What am I missing? Here's a minimal example:
import SwiftUI
struct ContentView: View {
let date = Date()
var islamicStyle... | https://stackoverflow.com/questions/79925440/swiftui-date-formatstyle-doesnt-work-with-alternate-calendars | swift, date, swiftui, calendar | 1,776,177,297 |
se_33819454 | stackoverflow | MOBILE_DEVELOPMENT | Solid Metronome System | Solid Metronome System
I am trying to build a reliable solid system to build a metronome in my app using Swift.
I Have built what seems to be a solid system using NSTimer so far.. The only issue I am having right now is when the timer starts the first 2 clicks are off time but then it catches into a solid timeframe.
N... | https://stackoverflow.com/questions/33819454/solid-metronome-system | swift, timer, nstimer | 1,447,996,369 |
se_79924779 | stackoverflow | MOBILE_DEVELOPMENT | Flutter iOS: USSD code with * and # not launching in phone dialer (works on Android) | Flutter iOS: USSD code with * and # not launching in phone dialer (works on Android)
hello,
Flutter iOS: USSD code with * and # not launching in phone dialer (works on Android)
flutter ios ussd url-launcher tel-uri PROBLEM
My Flutter app executes USSD codes for mobile money recharges. It worked correctly on iOS befor... | https://stackoverflow.com/questions/79924779/flutter-ios-ussd-code-with-and-not-launching-in-phone-dialer-works-on-andr | ios, swift, flutter, dart, ussd | 1,776,083,504 |
se_59336650 | stackoverflow | MOBILE_DEVELOPMENT | Change pivot point of object in RealityKit | Change pivot point of object in RealityKit
I want a cube to be scaled only over the positive z-axis.
Now when I scale it, it's always scaled around its center. So for this I will have to change the anchor point of the object.
I know in SceneKit there was a pivot property you could use.
Is there a way to do this in R... | https://stackoverflow.com/questions/59336650/change-pivot-point-of-object-in-realitykit | swift, xcode, pivot, augmented-reality, realitykit | 1,576,338,299 |
se_79923955 | stackoverflow | MOBILE_DEVELOPMENT | LocalizedStringResource is passed in an Interpolated String with an invalid segment | LocalizedStringResource is passed in an Interpolated String with an invalid segment
Trying to localize an interpolated string using Strings Catalog. Strings must be represented as LocalizedStringResource here, there's no other option.
// Error: 'LocalizedStringResource' is passed in an Interpolated String with an inva... | https://stackoverflow.com/questions/79923955/localizedstringresource-is-passed-in-an-interpolated-string-with-an-invalid-segm | swift, xcode, localization, xcstrings | 1,775,904,178 |
se_74407838 | stackoverflow | MOBILE_DEVELOPMENT | Why am I getting this: [SystemGestureGate] <0x102210320> Gesture: System gesture gate timed out | Why am I getting this: [SystemGestureGate] <0x102210320> Gesture: System gesture gate timed out
My iOS Swift 5 (Xcode 14.1) app is humming along. After the last Xcode update, I noticed that when I push a particular view controller with a table view inside a stack, inside a navigation controller, I get the follow... | https://stackoverflow.com/questions/74407838/why-am-i-getting-this-systemgesturegate-0x102210320-gesture-system-gesture | ios, swift, uigesturerecognizer | 1,668,198,804 |
se_79923757 | stackoverflow | MOBILE_DEVELOPMENT | Why can my non-Sendable closure cross the isolation boundary | Why can my non-Sendable closure cross the isolation boundary
I have this code
actor MyActor {
var checker: @MainActor () -> Void = {}
init(checker: @escaping @MainActor () -> Void) {
self.checker = checker
}
nonisolated func noniso() {
Task {
let checker = await self.checker
await ch... | https://stackoverflow.com/questions/79923757/why-can-my-non-sendable-closure-cross-the-isolation-boundary | ios, swift, swift-concurrency | 1,775,849,894 |
se_74226295 | stackoverflow | MOBILE_DEVELOPMENT | Difference between starting a detached task and calling a nonisolated func in main actor | Difference between starting a detached task and calling a nonisolated func in main actor
Imagine I'm in a class annotated with @MainActor so that all the functions are tied to the main actor. I'm trying to understand what the difference is between doing the following:
func bar() {
Task.detached(priority: .background... | https://stackoverflow.com/questions/74226295/difference-between-starting-a-detached-task-and-calling-a-nonisolated-func-in-ma | swift, swift-concurrency | 1,666,892,917 |
se_79923707 | stackoverflow | MOBILE_DEVELOPMENT | How can I initialize a FlutterMethodChannel for iOS using a UISceneDelegate? | How can I initialize a FlutterMethodChannel for iOS using a UISceneDelegate?
My iOS app uses a FlutterMethodChannel and I’m adopting the new UISceneDelegate strategy described here: https://docs.flutter.dev/release/breaking-changes/uiscenedelegate
I’m trying to initialize it in didInitializeImplicitFlutterEngine and I... | https://stackoverflow.com/questions/79923707/how-can-i-initialize-a-fluttermethodchannel-for-ios-using-a-uiscenedelegate | ios, swift, flutter | 1,775,844,189 |
se_79923768 | stackoverflow | MOBILE_DEVELOPMENT | AndroidX Paging Flow Collection in SwiftUI | AndroidX Paging Flow Collection in SwiftUI
everybody! In short: I have a pet project created with KMP (no shared ui) in that project I have set up AndroidX Paging3 library, which as documentation states supports kmp. I have a method that returns Flow<PagingData> in my commonMain repository. And on android side it see... | https://stackoverflow.com/questions/79923768/androidx-paging-flow-collection-in-swiftui | swift, android-paging-3, kmp | 1,775,853,353 |
se_60056477 | stackoverflow | MOBILE_DEVELOPMENT | UICollectionView with 2 columns squash the second column | UICollectionView with 2 columns squash the second column
I have a UICollectionview that's embedded in a UIView (I know it raises questions as per why - long story short, it's the easiest way I can accomplish this UI).
The problem is that I can't seem to figure out how to center the 2 columns with right in the middle... | https://stackoverflow.com/questions/60056477/uicollectionview-with-2-columns-squash-the-second-column | ios, swift, uicollectionview | 1,580,815,930 |
se_79923474 | stackoverflow | MOBILE_DEVELOPMENT | NSMetadataQuery not returning relevant files | NSMetadataQuery not returning relevant files
I want to use Spotlight to retrieve files. It should consider both the file name and the text content. However I get completely different search results than within the finder or with a manual mdfind. The NSMetadataQuery below only returns files it's matching in browser cac... | https://stackoverflow.com/questions/79923474/nsmetadataquery-not-returning-relevant-files | swift, macos, spotlight, nsmetadataquery | 1,775,822,414 |
se_75416102 | stackoverflow | MOBILE_DEVELOPMENT | Cannot infer contextual base in reference to member 'markt' | Cannot infer contextual base in reference to member 'markt'
I have the following code snippet that does not compile:
struct TabBar: View {
@Binding var tappedItem: TabBarItem = .markt
private let cartIcon = "cart.circle"
private let interestIcon = "person.crop.square.filled.and.at.rectang... | https://stackoverflow.com/questions/75416102/cannot-infer-contextual-base-in-reference-to-member-markt | swift, swiftui | 1,676,063,110 |
se_79774449 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI Datepicker inside .popover does not render with correct size | SwiftUI Datepicker inside .popover does not render with correct size
I do not understand why the question has been closed. The problem was definitly not caused by a typo. Simply copy the code I provided into a new Swift project and run the app. You should be able to see the warnings and the strange resizing behaviour.... | https://stackoverflow.com/questions/79774449/swiftui-datepicker-inside-popover-does-not-render-with-correct-size | ios, swift, swiftui, datepicker, popover | 1,758,782,942 |
se_79922231 | stackoverflow | MOBILE_DEVELOPMENT | iOS StoreKit 2 - How can an app be notified when a pending purchase occurs? | iOS StoreKit 2 - How can an app be notified when a pending purchase occurs?
I'm developing an iOS app using the StoreKit 2 API,
and I'm trying to handle pending purchases as described below.
Let's presume that the app is installed in devices A and B in the same family sharing group.
Let's also presume that a user make... | https://stackoverflow.com/questions/79922231/ios-storekit-2-how-can-an-app-be-notified-when-a-pending-purchase-occurs | ios, swift, storekit, storekit2 | 1,775,654,422 |
se_11337324 | stackoverflow | MOBILE_DEVELOPMENT | How to efficient insert and fetch UUID in Core Data | How to efficient insert and fetch UUID in Core Data
I am looking for an efficient way to store and search UUID in Core Data. Those UUID are generated by many iOS devices in a distributed system. Each of those devices may store about 20-50k UUIDs.
It is obvious that storing UUID as String in Core Data will hurt the ... | https://stackoverflow.com/questions/11337324/how-to-efficient-insert-and-fetch-uuid-in-core-data | ios, swift, sqlite, core-data, uuid | 1,341,456,769 |
se_77393072 | stackoverflow | MOBILE_DEVELOPMENT | Migrating ObservableObject and @Published Tests to Swift’s New @Observable Macro | Migrating ObservableObject and @Published Tests to Swift’s New @Observable Macro
I have just migrated from using ObservableObject and the @Published property wrapper to the new @Observable macro in Swift. I am wondering how I can rewrite these kind of tests. Please keep in mind that my tests cover arbitrarily complex ... | https://stackoverflow.com/questions/77393072/migrating-observableobject-and-published-tests-to-swift-s-new-observable-macro | swift, swiftui, observableobject | 1,698,723,900 |
se_79921333 | stackoverflow | MOBILE_DEVELOPMENT | RealityKit Animation Completion Handle Issue | RealityKit Animation Completion Handle Issue
I am using function below to make some animation in RealityKit application it is OK generally.
But there is a problem; the animation does not always finishes its job at given
duration so it messes up things which start after animation completion.
Because there is no complet... | https://stackoverflow.com/questions/79921333/realitykit-animation-completion-handle-issue | swift, animation, realitykit | 1,775,546,608 |
se_50374075 | stackoverflow | MOBILE_DEVELOPMENT | Peripheral device services showing nil in all BLE Scanner iOS App but not in android code | Peripheral device services showing nil in all BLE Scanner iOS App but not in android code
Part Number: CC2640R2F
Tool/software: Code Composer Studio
I am working on a project and in my project the CC2640R2F is performing advertising and scanning. I am using a custom BLE service to receive data from an app (Android ... | https://stackoverflow.com/questions/50374075/peripheral-device-services-showing-nil-in-all-ble-scanner-ios-app-but-not-in-and | ios, iphone, swift, bluetooth-lowenergy, core-bluetooth | 1,526,482,347 |
se_79921559 | stackoverflow | MOBILE_DEVELOPMENT | How to directly use an async iterator in an actor isolated function? | How to directly use an async iterator in an actor isolated function?
I happened to need to consume only one element of an async sequence, so rather than a `for await` loop, I thought I'd call makeAsyncIterator and then call next to make it very clear that I'm not looping at all.
@MainActor // this method needs to be m... | https://stackoverflow.com/questions/79921559/how-to-directly-use-an-async-iterator-in-an-actor-isolated-function | swift, swift-concurrency, asyncsequence | 1,775,567,315 |
se_79776709 | stackoverflow | MOBILE_DEVELOPMENT | Add gap to toolbar above iOS keyboard | Add gap to toolbar above iOS keyboard
Since iOS 26, the toolbar on the keyboard isn't against the keyboard, there's a small gap as seen here on Safari:
But in my app it shows up like this, without the gap:
Here's my code:
.toolbar {
ToolbarItem(placement: .keyboard) {
HStack {
Button(action: ... | https://stackoverflow.com/questions/79776709/add-gap-to-toolbar-above-ios-keyboard | swift, swiftui, keyboard, ios26, toolbaritems | 1,758,970,288 |
se_72105355 | stackoverflow | MOBILE_DEVELOPMENT | "The operation couldn’t be completed. Device was allocated but was stuck in creation state." (Xcode 13 iOS simulator on external device) | "The operation couldn’t be completed. Device was allocated but was stuck in creation state." (Xcode 13 iOS simulator on external device)
In order to save some of the precious 256GB of disk space on the internal drive of my (M1, 2020) MacBook Pro (MYD82LL/A) I ran the following commands in my macOS Terminal a... | https://stackoverflow.com/questions/72105355/the-operation-couldn-t-be-completed-device-was-allocated-but-was-stuck-in-crea | ios, swift, ios-simulator, apple-m1, xcode13 | 1,651,611,228 |
se_39140652 | stackoverflow | MOBILE_DEVELOPMENT | How to set UICollectionView bottom padding and scrolling size | How to set UICollectionView bottom padding and scrolling size
I have working uicollectionview custom layout and I have issues for bottom padding and scrolling sizes. Under below picture you can see;
Also top side first cell always stays on top when scrolling ( Left side cell must be always stay right now no problem th... | https://stackoverflow.com/questions/39140652/how-to-set-uicollectionview-bottom-padding-and-scrolling-size | ios, swift, uicollectionview, flowlayout | 1,472,114,879 |
se_79921339 | stackoverflow | MOBILE_DEVELOPMENT | Find Bundle ID or url scheme of public apps in which my keyboard is open | Find Bundle ID or url scheme of public apps in which my keyboard is open
I want to find the bundle id or the url scheme (if publicly availbale) of the iOS app my keyboard is open inside.
I have a feature in keyboard that requires launching my own app target. Once my app is launched I simply want to auto navigate back ... | https://stackoverflow.com/questions/79921339/find-bundle-id-or-url-scheme-of-public-apps-in-which-my-keyboard-is-open | ios, swift, ios-keyboard-extension | 1,775,546,970 |
se_24003291 | stackoverflow | MOBILE_DEVELOPMENT | #ifdef replacement in the Swift language | #ifdef replacement in the Swift language
In C/C++/Objective C you can define a macro using compiler preprocessors.
Moreover, you can include/exclude some parts of code using compiler preprocessors.
#ifdef DEBUG
// Debug-only code
#endif
Is there a similar solution in Swift? | https://stackoverflow.com/questions/24003291/ifdef-replacement-in-the-swift-language | swift, xcode, preprocessor, preprocessor-directive | 1,401,743,197 |
se_72661682 | stackoverflow | MOBILE_DEVELOPMENT | How to interpret MetricKit histogrammedApplicationResumeTime values? | How to interpret MetricKit histogrammedApplicationResumeTime values?
I've implemented collecting MetricKit data for my app. And I don't understand meaning of histogrammedApplicationResumeTime values from appLaunch metric. I explored data and found, that there are can be really huge values – around hours.
For example, ... | https://stackoverflow.com/questions/72661682/how-to-interpret-metrickit-histogrammedapplicationresumetime-values | ios, swift, performance, mobile, metrickit | 1,655,479,923 |
se_79675640 | stackoverflow | MOBILE_DEVELOPMENT | Scroll edge appearance on UITabBar not working in attempt to replicate UITabBarController with custom view controller | Scroll edge appearance on UITabBar not working in attempt to replicate UITabBarController with custom view controller
Note: The following is a bit long but there's just no way to reduce the code any further and still demonstrate the issue.
For reasons I won't get into, I am creating my own implementation of UITabBarC... | https://stackoverflow.com/questions/79675640/scroll-edge-appearance-on-uitabbar-not-working-in-attempt-to-replicate-uitabbarc | ios, swift, uiviewcontroller, uikit, uitabbar | 1,750,655,241 |
se_71063011 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI NavigationView size to fit content | SwiftUI NavigationView size to fit content
I want to create a bottom sheet that contains a NavigationView to support back and forth transitions managed by a coordinator.
As far as I saw, the NavigationView automatically uses all the space it can - independent of whether its content actually needs this space. I can lim... | https://stackoverflow.com/questions/71063011/swiftui-navigationview-size-to-fit-content | ios, swift, swiftui | 1,644,487,026 |
se_79920228 | stackoverflow | MOBILE_DEVELOPMENT | How to scan a folder asynchronously in SwiftUI 6? | How to scan a folder asynchronously in SwiftUI 6?
I can do it with Swift 5, but I do not know how to fix the compilation error with Swift 6. I browsed the net for weeks, made tests and tests, but no solution. Could you help please? I wrote a small app to count the files in My Documents. Here is the code.
Regards.
impo... | https://stackoverflow.com/questions/79920228/how-to-scan-a-folder-asynchronously-in-swiftui-6 | swift, asynchronous, enumerator | 1,775,329,687 |
se_55269248 | stackoverflow | MOBILE_DEVELOPMENT | How to limit the use of an app to one device on iOS | How to limit the use of an app to one device on iOS
I have currently an app that through in-app purchases a user can unlock content on the app. What I have noticed is that some users "abuse" of this by logging with their Apple ID in multiple devices and I'm currently looking into possibilities on how to limit the use ... | https://stackoverflow.com/questions/55269248/how-to-limit-the-use-of-an-app-to-one-device-on-ios | ios, swift | 1,553,112,012 |
se_73555632 | stackoverflow | MOBILE_DEVELOPMENT | How do i align an image with text in an HStack? | How do i align an image with text in an HStack?
I am trying to create a view that is a rectangle with text and images inside. This is done in a VStack. At the bottom of the VStack, I have an HStack where I have a small image and a number next to it. These need to be centred aligned but I can't seem to make that happen... | https://stackoverflow.com/questions/73555632/how-do-i-align-an-image-with-text-in-an-hstack | ios, swift, swiftui | 1,661,947,371 |
se_76105575 | stackoverflow | MOBILE_DEVELOPMENT | What is an iOS 16-compatible way of turning a list of uniform type indicator strings (e.g., ["public.text", "public.image"]) into a list of UTType? | What is an iOS 16-compatible way of turning a list of uniform type indicator strings (e.g., ["public.text", "public.image"]) into a list of UTType?
My app has a list of supported uniform type indicator (UTI) strings:
public static let supportedUTIs = ["public.text", "public.image", "com.adobe.p... | https://stackoverflow.com/questions/76105575/what-is-an-ios-16-compatible-way-of-turning-a-list-of-uniform-type-indicator-str | swift, ios16, uti, uidocumentpickerviewcontroller, uttype | 1,682,458,223 |
se_79919830 | stackoverflow | MOBILE_DEVELOPMENT | Bundle.main.paths(forResourcesOfType:inDirectory) is not working on iOS | Bundle.main.paths(forResourcesOfType:inDirectory) is not working on iOS
I'm creating a Multiplatform SwiftUI app.
After some initial struggles, I was able to create a directory of files and add them to my app's bundle. At launch time, I try to use the Bundle function Bundle.main.paths(forResourcesOfType:) to find tho... | https://stackoverflow.com/questions/79919830/bundle-main-pathsforresourcesoftypeindirectory-is-not-working-on-ios | ios, swift, bundle | 1,775,243,452 |
se_40074410 | stackoverflow | MOBILE_DEVELOPMENT | Swift 3: error: ambiguous reference to member '>' | Swift 3: error: ambiguous reference to member '>'
I can't make sense of this error from the Swift compiler:
error: ambiguous reference to member '>'
let moveDirection = dx > 0 ? .right : .left
Here is the code:
enum MoveDirection {
case none
case left
case right
}
override func touches... | https://stackoverflow.com/questions/40074410/swift-3-error-ambiguous-reference-to-member | swift, swift3 | 1,476,645,475 |
se_73316021 | stackoverflow | MOBILE_DEVELOPMENT | How to observe more precise player time in VLCKit? | How to observe more precise player time in VLCKit?
I'm trying to incorporate MobileVLCKit into my app but the default time observer isn't precise enough for me and makes the progress bar jump between times. Is there a way to get more precise time updates (for example, every 1/60th second)?
Here's my current code:
let ... | https://stackoverflow.com/questions/73316021/how-to-observe-more-precise-player-time-in-vlckit | ios, swift, objective-c, vlckit | 1,660,198,403 |
se_79919621 | stackoverflow | MOBILE_DEVELOPMENT | NSExtensionPrincipalClass submission validation vs install conflict | NSExtensionPrincipalClass submission validation vs install conflict
I'm creating an iOS app that's simply a collection of actions for the Shortcuts app (like Sindre Sorhus' one).
When validating or distributing a built archive / release, it fails with the following errors:
Validation failed
Missing Info.plist values.... | https://stackoverflow.com/questions/79919621/nsextensionprincipalclass-submission-validation-vs-install-conflict | ios, swift, xcode, app-store-connect | 1,775,221,694 |
se_79919485 | stackoverflow | MOBILE_DEVELOPMENT | Is there a way to force Xcode to always debug over USB instead of WiFi? | Is there a way to force Xcode to always debug over USB instead of WiFi?
I'm testing offline mode in my app. When I debug over WiFi, the iPhone loses the debugger connection after several seconds when I turn on Airplane Mode.
In Xcode 26, there is no longer a checkbox for disabling WiFi in the device settings.
Network ... | https://stackoverflow.com/questions/79919485/is-there-a-way-to-force-xcode-to-always-debug-over-usb-instead-of-wifi | ios, swift, iphone, xcode, debugging | 1,775,207,473 |
se_70233139 | stackoverflow | MOBILE_DEVELOPMENT | GameKit presenting authentication view controller automatically instead of waiting for me to present it | GameKit presenting authentication view controller automatically instead of waiting for me to present it
According to Apple's documentation, you should set GKLocalPlayer.local.authenticateHandler, once at app launch, with a closure that accepts a viewController and an error. And if the viewController is not nil, you sh... | https://stackoverflow.com/questions/70233139/gamekit-presenting-authentication-view-controller-automatically-instead-of-waiti | ios, swift, swiftui, game-center, gamekit | 1,638,697,924 |
se_79918218 | stackoverflow | MOBILE_DEVELOPMENT | How to conditionally set tint color on interactive glass in SwiftUI iOS 26? | How to conditionally set tint color on interactive glass in SwiftUI iOS 26?
I'm using the new .glassEffect(.interactive()) API in SwiftUI (iOS 26), and I want to change the tint color based on state.
However, when I conditionally change the tint using a ternary, the interactive glass animation gets interrupted midway ... | https://stackoverflow.com/questions/79918218/how-to-conditionally-set-tint-color-on-interactive-glass-in-swiftui-ios-26 | ios, swift, swiftui | 1,775,030,114 |
se_79912625 | stackoverflow | MOBILE_DEVELOPMENT | App Store Connect App Clip section crashes when adding default experience (UI bug?) | App Store Connect App Clip section crashes when adding default experience (UI bug?)
I’m trying to configure an App Clip in App Store Connect, but the UI crashes when interacting with the App Clip section.
Problem
When I click on the Subtitle field under the App Clip section in the App Store version page, the page imme... | https://stackoverflow.com/questions/79912625/app-store-connect-app-clip-section-crashes-when-adding-default-experience-ui-bu | swift, xcode, apple-appclips | 1,774,251,566 |
se_79918248 | stackoverflow | MOBILE_DEVELOPMENT | How can I connect the smooth curve edges of this Shape in SwiftUI? | How can I connect the smooth curve edges of this Shape in SwiftUI?
I have this Wavy Stamp Shape
struct WavyPostageStampShape: Shape {
var amplitude: CGFloat = 8
var wavesX: Int = 6
var wavesY: Int = 10
var phase: CGFloat = 0
var step: CGFloat = 2
func path(in rect: CGRect) -> Path {
va... | https://stackoverflow.com/questions/79918248/how-can-i-connect-the-smooth-curve-edges-of-this-shape-in-swiftui | swift, math, swiftui, shapes | 1,775,034,469 |
se_79918279 | stackoverflow | MOBILE_DEVELOPMENT | Can I Use Swift 5 SDKs in Swift6 Codebase Smoothly? | Can I Use Swift 5 SDKs in Swift6 Codebase Smoothly?
I want to migrate to swift 6 from swift 5. My app has multiple SDKs which are using Swift 5. My question is that will it cause any issue in terms of app build or performance?
I have read that Swift 6 more likely provide thread safety for compile time. As I'm in plann... | https://stackoverflow.com/questions/79918279/can-i-use-swift-5-sdks-in-swift6-codebase-smoothly | swift, concurrency, swift6 | 1,775,037,669 |
se_76753801 | stackoverflow | MOBILE_DEVELOPMENT | Swift Data Error "The model configuration used to open the store is incompatible with the one that was used to create the store." | Swift Data Error "The model configuration used to open the store is incompatible with the one that was used to create the store."
While developing an iOS app with Xcode Beta 14 I changed a swift-data model and I started getting this error:
Error Domain=NSCocoaErrorDomain Code=134020 "The model configuration... | https://stackoverflow.com/questions/76753801/swift-data-error-the-model-configuration-used-to-open-the-store-is-incompatible | ios, swift, xcode, swiftdata | 1,690,196,288 |
se_79917981 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI MapKit- Pitch | SwiftUI MapKit- Pitch
I'm building a navigation app and I want the map to follow the user's location and heading with a specific pitch (e.g. 60 degrees...) , similar to how Apple Maps looks during navigation, or Google.
The problem I have...
.userLocation(followsHeading:fallback:) has no parameters for pitch or distan... | https://stackoverflow.com/questions/79917981/swiftui-mapkit-pitch | swift, swiftui, mapkit | 1,774,983,057 |
se_77817097 | stackoverflow | MOBILE_DEVELOPMENT | Change NavigationStack title font, tint, and background in SwiftUI | Change NavigationStack title font, tint, and background in SwiftUI
I am updating the UI of an iOS app, now targeting iOS 16 and above.
In the previous version of the design I was changing the .navigationTitle font, style, and colour using something like this code:
final class AppSettings: ObservableObject {
@Publish... | https://stackoverflow.com/questions/77817097/change-navigationstack-title-font-tint-and-background-in-swiftui | ios, swift, swiftui, swiftui-navigationstack | 1,705,275,626 |
se_78710345 | stackoverflow | MOBILE_DEVELOPMENT | Touch events in a zoomed UITextView | Touch events in a zoomed UITextView
My app uses a zoomed UITextView. When zoomScale is set anywhere above 1, some touch events are not happening at correct positions.
The gray caret which is where the actual touch happens, and it is also registered correctly both on simulator and on real device, while the blue caret i... | https://stackoverflow.com/questions/78710345/touch-events-in-a-zoomed-uitextview | ios, swift, uikit, uitextview, textkit | 1,720,166,702 |
se_75482602 | stackoverflow | MOBILE_DEVELOPMENT | Replacing layout manager in UITextView using TextKit 1 | Replacing layout manager in UITextView using TextKit 1
I have a UITextView created in storyboard. The view uses TextKit 1, and I'm trying to replace the NSLayoutManager. When calling .sizeThatFits() (or any other method requiring layout) on my text view, I'm getting an uncaught exception:
*** -[NSLayoutManager glyphRa... | https://stackoverflow.com/questions/75482602/replacing-layout-manager-in-uitextview-using-textkit-1 | ios, swift, uitextview, textkit | 1,676,627,267 |
se_69080580 | stackoverflow | MOBILE_DEVELOPMENT | Debugging JavaScriptCore heap crashes in Big Sur | Debugging JavaScriptCore heap crashes in Big Sur
I have a JavaScriptCore scripting interface in my app, with access to some subclasses, which can be initialized in JSContext.
After migrating to Big Sur, I'm getting constant crashes after the context has already been abandoned and all of the code evaluated. Crashes are... | https://stackoverflow.com/questions/69080580/debugging-javascriptcore-heap-crashes-in-big-sur | swift, objective-c, macos, javascriptcore | 1,630,965,267 |
se_68269269 | stackoverflow | MOBILE_DEVELOPMENT | How to add a subtitle below a large title in a navigation view in swift ui? | How to add a subtitle below a large title in a navigation view in swift ui?
How can I add a subtitle under a large title that was defined this way?
NavigationView{
VStack(){
//"Some code"
}
.navigationTitle("Analytics")
} | https://stackoverflow.com/questions/68269269/how-to-add-a-subtitle-below-a-large-title-in-a-navigation-view-in-swift-ui | swift, swiftui, navigationview | 1,625,568,877 |
se_79912759 | stackoverflow | MOBILE_DEVELOPMENT | Core Data relationships (constraints) not reflected in CloudKit schema – expected behavior or misconfiguration? | Core Data relationships (constraints) not reflected in CloudKit schema – expected behavior or misconfiguration?
I’m working on an iOS app using Core Data with CloudKit synchronization (NSPersistentCloudKitContainer).
In my Core Data model, I have defined relationships between entities (e.g. 1:n and n:m). These relatio... | https://stackoverflow.com/questions/79912759/core-data-relationships-constraints-not-reflected-in-cloudkit-schema-expecte | swift, xcode, core-data, cloudkit | 1,774,267,310 |
se_71054937 | stackoverflow | MOBILE_DEVELOPMENT | Using Swift, I simply try to turn an else block into a ternary operator | Using Swift, I simply try to turn an else block into a ternary operator
if bulletsOn == true {
bullets -= 0.003
} else {
bullets += 0.001
}
When I put in form of ternary like so, I get error from compiler.
bulletsOn ? bullets -= 0.003 : bullets += 0.001
error:
Result values in '? :' expression have mismatching... | https://stackoverflow.com/questions/71054937/using-swift-i-simply-try-to-turn-an-else-block-into-a-ternary-operator | swift, ternary | 1,644,431,617 |
se_41974883 | stackoverflow | MOBILE_DEVELOPMENT | How to print out the method name and line number in swift | How to print out the method name and line number in swift
Here is an example of what I want to do:
func application(application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: NSError)
{
let nm = NetworkModel()
nm.sendlog("file name :AppDelegate , line number : 288", info: " Failed ... | https://stackoverflow.com/questions/41974883/how-to-print-out-the-method-name-and-line-number-in-swift | swift | 1,485,936,999 |
se_79916643 | stackoverflow | MOBILE_DEVELOPMENT | How to detect shelf horizontal angle deviation in a mobile app? (iOS and Android) | How to detect shelf horizontal angle deviation in a mobile app? (iOS and Android)
I need a way to analyze retail shelf photos, detect the shelf rail/edge angle relative to a horizontal line, and return “Not Detectable” if no valid shelf line is found. If the detected deviation is more than 15 degrees from horizontal, ... | https://stackoverflow.com/questions/79916643/how-to-detect-shelf-horizontal-angle-deviation-in-a-mobile-app-ios-and-android | android, ios, swift | 1,774,801,242 |
se_79905881 | stackoverflow | MOBILE_DEVELOPMENT | does anybody know a library to add digital signature in the pdf in ios app? | does anybody know a library to add digital signature in the pdf in ios app?
Creating a digital signature in a PDF on iOS using OpenSSL and QPDF – Unable to generate a valid CMS signature
I am developing an iOS application in Swift that allows users to add a digital signature to a PDF document.
For the implementation, ... | https://stackoverflow.com/questions/79905881/does-anybody-know-a-library-to-add-digital-signature-in-the-pdf-in-ios-app | ios, swift, xcode, digital-signature | 1,773,291,679 |
se_26028918 | stackoverflow | MOBILE_DEVELOPMENT | How to determine the current iPhone/device model? | How to determine the current iPhone/device model?
Is there a way to get the device model name (iPhone 4S, iPhone 5, iPhone 5S, etc) in Swift?
I know there is a property named UIDevice.currentDevice().model but it only returns device type (iPod touch, iPhone, iPad, iPhone Simulator, etc).
I also know it can be done eas... | https://stackoverflow.com/questions/26028918/how-to-determine-the-current-iphone-device-model | ios, swift, iphone | 1,411,607,281 |
se_67033113 | stackoverflow | MOBILE_DEVELOPMENT | swiftUI - Date Comparison | swiftUI - Date Comparison
I need to compare 2 dates and if it is the same date, do something... (dd/MM to dd/MM only). I generate today's date, then set my own date and when compared, the same dates do not match. (When displaying each date (as Text), the result is the same. E.g. 10-04 and 10-04.)
struct eddEntryView :... | https://stackoverflow.com/questions/67033113/swiftui-date-comparison | swift, date, swiftui, compare | 1,618,049,348 |
se_65460457 | stackoverflow | MOBILE_DEVELOPMENT | How do I disable the Show Tab Bar menu option in SwiftUI | How do I disable the Show Tab Bar menu option in SwiftUI
I have created a very simple app on MacOS created with SwiftUI. Default there is a menu item show tab bar. How do I remove this? I doesn't make sense to have tabs in this app.
I've found the following answering the same question, but for older versions of Swift,... | https://stackoverflow.com/questions/65460457/how-do-i-disable-the-show-tab-bar-menu-option-in-swiftui | swift, macos, swiftui | 1,609,014,707 |
se_79813033 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI preview not working in Xcode 26 when “Automatically Refresh Canvas” is enabled | SwiftUI preview not working in Xcode 26 when “Automatically Refresh Canvas” is enabled
After updating to Xcode 26, I’m no longer able to load SwiftUI previews in new projects. The preview pane shows the error:
Cannot preview in this file.
Interestingly, if I disable “Automatically Refresh Canvas”, the preview works ... | https://stackoverflow.com/questions/79813033/swiftui-preview-not-working-in-xcode-26-when-automatically-refresh-canvas-is-e | swift, xcode, swiftui, canvas, preview | 1,762,588,031 |
se_79916454 | stackoverflow | MOBILE_DEVELOPMENT | A way to sync notes with Apple Notes | A way to sync notes with Apple Notes
I am currently working on a yet another notes ios app. I was looking for a way to sync the notes from my application with apple notes. is there a way for that? The app I am working on should be able to sync any note created on apple notes and vice versa. | https://stackoverflow.com/questions/79916454/a-way-to-sync-notes-with-apple-notes | ios, swift, notes | 1,774,761,851 |
se_60109926 | stackoverflow | MOBILE_DEVELOPMENT | Why FileManager.default.attributesOfItem returning current date in NSFileCreationDate? | Why FileManager.default.attributesOfItem returning current date in NSFileCreationDate?
Though I have checked other answers about how to get the creation date, but that don't seem working out for me.
This is how I am extracting the creation date.
class func extractFileCreatedDate(filepath: String) -> String{
var... | https://stackoverflow.com/questions/60109926/why-filemanager-default-attributesofitem-returning-current-date-in-nsfilecreatio | ios, swift, nsfilemanager | 1,581,065,242 |
se_32354977 | stackoverflow | MOBILE_DEVELOPMENT | Real-time blur for UIImage by sliding on iOS | Real-time blur for UIImage by sliding on iOS
How to achieve the real time blurring for UIImage on sliderValueChanged(_:)?
@IBOutlet weak var imageView: UIImageView!
@IBAction func sliderValueChanged(sender: UISlider) {
let blurRadius = sender.value
var img = imageView.image
// some image processing for ... | https://stackoverflow.com/questions/32354977/real-time-blur-for-uiimage-by-sliding-on-ios | ios, swift, uiimage, blur, uislider | 1,441,201,589 |
se_74918932 | stackoverflow | MOBILE_DEVELOPMENT | DispatchQueue.global() default qos is userInitiated? | DispatchQueue.global() default qos is userInitiated?
I write a demo
let queue = DispatchQueue.global()
queue.async {
let group = DispatchGroup()
group.enter()
DispatchQueue.global().asyncAfter(deadline: DispatchTime.now(), qos: .default) {
//do sth in default queue
group.leave()
}
g... | https://stackoverflow.com/questions/74918932/dispatchqueue-global-default-qos-is-userinitiated | ios, swift, queue, grand-central-dispatch | 1,672,046,636 |
se_69092972 | stackoverflow | MOBILE_DEVELOPMENT | UndoManager persistence in iOS | UndoManager persistence in iOS
I want to implement undo/redo operations in my app. The undo/redo actions need to be recorded for every document rather than at UIViewController level. So I will need to put UndoManager in the class implementing custom document.
One of the requirement is that undo/redo should be possible... | https://stackoverflow.com/questions/69092972/undomanager-persistence-in-ios | ios, swift, nsundomanager | 1,631,039,161 |
se_79915007 | stackoverflow | MOBILE_DEVELOPMENT | How to change toolbar title color in SwiftUI when running on macOS Catalyst? | How to change toolbar title color in SwiftUI when running on macOS Catalyst?
In my SwiftUI based iOS app I style the the navigationBar / toolbar to be black. Of course this requires the title (+ other content) to be white / use light mode to be visible.
While this works fine in iOS, setting the .toolbarColorScheme to ... | https://stackoverflow.com/questions/79915007/how-to-change-toolbar-title-color-in-swiftui-when-running-on-macos-catalyst | ios, swift, swiftui, toolbar, mac-catalyst | 1,774,526,657 |
se_55012981 | stackoverflow | MOBILE_DEVELOPMENT | Clear the content of UITextView in Swift | Clear the content of UITextView in Swift
I have a UITextView and a UIButton in my app and I'm trying to get the text content of the UITextView to be cleared when the UIButton is tapped.
My code:
@IBOutlet weak var textView: UITextView!
@IBAction func ClearButtonTapped(_ sender: UIButton) {
// I want to clear the ... | https://stackoverflow.com/questions/55012981/clear-the-content-of-uitextview-in-swift | ios, swift, uitextview | 1,551,826,849 |
se_30379108 | stackoverflow | MOBILE_DEVELOPMENT | What is the meaning of the `in` keyword in Swift? | What is the meaning of the `in` keyword in Swift?
I am trying to implement some code from parse.com, and I notice a keyword, in, after the void.
I am stumped. What is this? In the second line, you see the Void in:
PFUser.logInWithUsernameInBackground("myname", password:"mypass") {
(user: PFUser?, error: NSError?) ->... | https://stackoverflow.com/questions/30379108/what-is-the-meaning-of-the-in-keyword-in-swift | ios, swift, keyword | 1,432,224,777 |
se_26764342 | stackoverflow | MOBILE_DEVELOPMENT | Drawing arc with bezier curves | Drawing arc with bezier curves
I am trying to draw an arc using bezier curves. I have learned that you can't draw a perfect circle using bezier curves but you can come close. Unfortunately the math is too complicated and I can't personally figure it out.
I can create the A1 slice below as a triangle, but I can't figu... | https://stackoverflow.com/questions/26764342/drawing-arc-with-bezier-curves | ios, objective-c, swift, geometry, bezier | 1,415,211,715 |
se_79914767 | stackoverflow | MOBILE_DEVELOPMENT | How to apply corner radius to a Native glass effected UIButton? | How to apply corner radius to a Native glass effected UIButton?
What I want:
What I have: (iOS 26.0)
In the lower version of iOS(<26.0) is working good as attach screenshot above but when i run the app on iOS 26.0 it's not applied .glasseffect but when applied corner radius to it it's not working for me.
Is this pos... | https://stackoverflow.com/questions/79914767/how-to-apply-corner-radius-to-a-native-glass-effected-uibutton | ios, swift, uikit, uibutton, uiglasseffect | 1,774,502,530 |
se_40915607 | stackoverflow | MOBILE_DEVELOPMENT | How can I decode JWT (JSON web token) token in Swift? | How can I decode JWT (JSON web token) token in Swift?
I have a JWT token like this
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
How can I decode this so that I can get the payload like this
{ "sub": "12... | https://stackoverflow.com/questions/40915607/how-can-i-decode-jwt-json-web-token-token-in-swift | json, swift, swift3, jwt | 1,480,609,571 |
se_60810304 | stackoverflow | MOBILE_DEVELOPMENT | Firebase Cloud Messaging on iOS not working properly | Firebase Cloud Messaging on iOS not working properly
I added to my project Firebase Cloud Messaging for receiving and sending push notifications. I followed steps in original tutorial from Google. The result was exciting, I can receive push notification on my device - I published it to TestFlight - problem occurred.
... | https://stackoverflow.com/questions/60810304/firebase-cloud-messaging-on-ios-not-working-properly | ios, swift, firebase, push-notification, apple-push-notifications | 1,584,953,364 |
se_36384506 | stackoverflow | MOBILE_DEVELOPMENT | Clear UIPasteBoard | Clear UIPasteBoard
Lets assume that 3 strings have been copied on the UIPasteBoard:
UIPasteboard.generalPasteboard().string = "hello"
UIPasteboard.generalPasteboard().string = "world"
UIPasteboard.generalPasteboard().string = "!"
I then call
UIPasteboard.generalPasteboard().string = ""
Will it clear the pasteboard? ... | https://stackoverflow.com/questions/36384506/clear-uipasteboard | swift, uipasteboard | 1,459,680,525 |
se_27906188 | stackoverflow | MOBILE_DEVELOPMENT | iOS error "Embedded binary is not signed with the same certificate as the parent app" | iOS error "Embedded binary is not signed with the same certificate as the parent app"
Those are my first steps in IOS applications development and I'm facing some problem that I can't figure out.
error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary targ... | https://stackoverflow.com/questions/27906188/ios-error-embedded-binary-is-not-signed-with-the-same-certificate-as-the-parent | xcode, swift, certificate, xcode6, provisioning-profile | 1,421,078,990 |
se_56519071 | stackoverflow | MOBILE_DEVELOPMENT | MDC crashing with 'NSInvalidArgumentException', reason: '-[UIButton applyOutlinedThemeWithScheme:]: unrecognized selector sent to instance | MDC crashing with 'NSInvalidArgumentException', reason: '-[UIButton applyOutlinedThemeWithScheme:]: unrecognized selector sent to instance
I am trying to set a button property like this,
When i add this code it crashes without even displaying the button i have in the main.storyboard.
let containerSc... | https://stackoverflow.com/questions/56519071/mdc-crashing-with-nsinvalidargumentexception-reason-uibutton-applyoutline | ios, swift, material-design, material-components, material-components-ios | 1,560,122,570 |
se_79373187 | stackoverflow | MOBILE_DEVELOPMENT | How to make ARView background black and white but keep node objects colored in Swift (ARKit, Metal)? | How to make ARView background black and white but keep node objects colored in Swift (ARKit, Metal)?
I am working on an ARKit project where I use ARView (or ARSCNView) to place nodes in the real world. I want to apply a black and white filter to the camera feed background while keeping my 3D node objects colored. I he... | https://stackoverflow.com/questions/79373187/how-to-make-arview-background-black-and-white-but-keep-node-objects-colored-in-s | ios, swift, scenekit, arkit, metal | 1,737,432,862 |
se_79911399 | stackoverflow | MOBILE_DEVELOPMENT | Unwanted Communication Reporting Extension deletes messages always | Unwanted Communication Reporting Extension deletes messages always
I am implementing an Unwanted Communication Reporting Extension (IdentityLookupUI) to allow users to report spam messages to our backend.
The extension works perfectly in terms of data collection and network reporting (using ILClassificationExtensionNe... | https://stackoverflow.com/questions/79911399/unwanted-communication-reporting-extension-deletes-messages-always | ios, swift, ios-app-extension | 1,774,016,508 |
se_35540312 | stackoverflow | MOBILE_DEVELOPMENT | Change opacity on NSTextAttachment's image | Change opacity on NSTextAttachment's image
I seem to have an issue with changing the transparency with an NSTextAttachment's image in an NSAttributedString.
I have a string that I would like to fade in and out, but it seems that the images attached to the string do not fade out along with the text.
I have tried ... | https://stackoverflow.com/questions/35540312/change-opacity-on-nstextattachments-image | ios, objective-c, swift, nsattributedstring, nstextattachment | 1,456,080,155 |
se_79876073 | stackoverflow | MOBILE_DEVELOPMENT | Liquid Glass toolbar animation only plays when switching state rapidly | Liquid Glass toolbar animation only plays when switching state rapidly
I’m testing the iOS 26 Liquid Glass toolbar behavior in SwiftUI. Toolbars have a morphing/materialize animation when their content changes during navigation.
In my case, I’m switching toolbar items using a segmented Picker (not navigation). The too... | https://stackoverflow.com/questions/79876073/liquid-glass-toolbar-animation-only-plays-when-switching-state-rapidly | ios, swift, swiftui, liquid-glass | 1,769,399,464 |
se_63731808 | stackoverflow | MOBILE_DEVELOPMENT | Why is my Xcode simulator just showing me a black screen? No scene delegate set? | Why is my Xcode simulator just showing me a black screen? No scene delegate set?
I've seen a similar question before but the post was very old and none of the answers worked for me. I am making a really simple code for cs50's mobile track which is just a tiny pokedex, but whenever I run my app simulator, I am met with... | https://stackoverflow.com/questions/63731808/why-is-my-xcode-simulator-just-showing-me-a-black-screen-no-scene-delegate-set | swift, xcode, ios-simulator | 1,599,168,140 |
se_60416448 | stackoverflow | MOBILE_DEVELOPMENT | Display cut / copy / paste menu for UITextView / UITextField created programmatically | Display cut / copy / paste menu for UITextView / UITextField created programmatically
I cannot seem to get the default behaviour when creating a UITextView or a UITextField programmatically compared to coming from the Storyboard.
I instantiate the text view in the view controller as a property like this:
lazy var de... | https://stackoverflow.com/questions/60416448/display-cut-copy-paste-menu-for-uitextview-uitextfield-created-programmati | ios, swift | 1,582,728,200 |
se_79912943 | stackoverflow | MOBILE_DEVELOPMENT | Tree-like data structure visualization/representation/drawing | Tree-like data structure visualization/representation/drawing
There's a tree data structure with string nodes.
Is there a framework/library to draw this structured text tree into graphic context (CGContext)?
it's about calculating correct layout to represent it
Or where should I search any useful info?
Mb custom solut... | https://stackoverflow.com/questions/79912943/tree-like-data-structure-visualization-representation-drawing | swift, graphics, drawing, core-graphics, draw | 1,774,284,459 |
se_50762407 | stackoverflow | MOBILE_DEVELOPMENT | Raspberry Pi Bluetooth not detecting in iOS Swift | Raspberry Pi Bluetooth not detecting in iOS Swift
I need to send data from my iPhone 5s to Raspberry Pi (Model B). But the problem is, Raspberry Pi bluetooth not discovering by program, But It is discovered and paired from iPhone default Bluetooth settings(screenshot attached).
Also, my iBeacons(Transmitter only) are... | https://stackoverflow.com/questions/50762407/raspberry-pi-bluetooth-not-detecting-in-ios-swift | ios, swift, raspberry-pi, core-bluetooth | 1,528,466,603 |
se_33855998 | stackoverflow | MOBILE_DEVELOPMENT | How to get hardware details in Swift? | How to get hardware details in Swift?
How to get info of hardware like CPU Model, CPU usage, CPU idle, RAM Details, Storage details etc? I use Xcode 7.1.1 and Swift 2. I want no make app. I tried UIDevice, NSProcessInfo. I saw several posts but I don't find any solving. | https://stackoverflow.com/questions/33855998/how-to-get-hardware-details-in-swift | ios, swift | 1,448,203,287 |
se_79626751 | stackoverflow | MOBILE_DEVELOPMENT | How to completely reset SwiftData programatically? | How to completely reset SwiftData programatically?
I'm currently developping an app, which runs on several devices via TestFlight. Since I am still in an early stage my @Models are subject to change quite frequently.
I know that the preferred way of handling changes to the Schema are SchemaMigrationPlans. However due ... | https://stackoverflow.com/questions/79626751/how-to-completely-reset-swiftdata-programatically | swift, swiftdata | 1,747,499,483 |
se_35619742 | stackoverflow | MOBILE_DEVELOPMENT | How to save and load multiple credentials using Locksmith? | How to save and load multiple credentials using Locksmith?
I'm using a basic library called Locksmith. Although, it seems as if all the examples handle a single username and password for the application, instead of multiple.
Example:
let dictionary = Locksmith.loadDataForUserAccount("myUserAccount")
The above just... | https://stackoverflow.com/questions/35619742/how-to-save-and-load-multiple-credentials-using-locksmith | ios, xcode, swift, keychain | 1,456,380,917 |
se_73813148 | stackoverflow | MOBILE_DEVELOPMENT | Swift XCTest unit tests in a MacOs Command Line Tool project | Swift XCTest unit tests in a MacOs Command Line Tool project
I want to unit test a command line tool.
I go through the following progress
Create a new project using the macOS > Command Line Tool template. Call it "MyProject"
import Foundation
class MyCode {
func hello() {
print("hello")
}
}
let code ... | https://stackoverflow.com/questions/73813148/swift-xctest-unit-tests-in-a-macos-command-line-tool-project | swift, xcode, unit-testing, command-line-interface, xctest | 1,663,842,802 |
se_78649298 | stackoverflow | MOBILE_DEVELOPMENT | Swift 6: Capture of 'self' with non-sendable type in a @Sendable closure | Swift 6: Capture of 'self' with non-sendable type in a @Sendable closure
Context
Consider this simple example, where we have an Actor and a Class which holds a reference to that Actor:
actor MyActor
{
func doWork() -> Int {
return 42
}
}
class MyClass
{
let worker: MyActor = MyActor()
... | https://stackoverflow.com/questions/78649298/swift-6-capture-of-self-with-non-sendable-type-in-a-sendable-closure | swift, concurrency, actor, swift-concurrency, swift6 | 1,718,911,846 |
se_79910910 | stackoverflow | MOBILE_DEVELOPMENT | CloudKit, cannot deploy private database initial schema to production | CloudKit, cannot deploy private database initial schema to production
We’re using a private database with a custom zone. Record types and related schema are created programmatically rather than through the dashboard.
When running the app in the development environment, I can see that data is saved and can be retrieved... | https://stackoverflow.com/questions/79910910/cloudkit-cannot-deploy-private-database-initial-schema-to-production | swift, cloudkit | 1,773,951,169 |
se_79910873 | stackoverflow | MOBILE_DEVELOPMENT | Fetch data from server using URLSession(New) | Fetch data from server using URLSession(New)
// MARK: - With token or without token APIManager Class.
I am trying to create a reusable API manager in Swift that can handle both authenticated (with token) and non-authenticated API requests.
I wrote a common method that accepts a URL and token. If the token is available... | https://stackoverflow.com/questions/79910873/fetch-data-from-server-using-urlsessionnew | ios, swift | 1,773,944,761 |
se_79910925 | stackoverflow | MOBILE_DEVELOPMENT | Undefined symbols with switching project from cocoapod to spm | Undefined symbols with switching project from cocoapod to spm
Undefined Symbol in Test Target When Using SPM Umbrella Libraries
I'm migrating a large project from CocoaPods to Swift Package Manager. The project has a main app target and a test target in Xcode. My approach was to create two "umbrella" SPM products — Ap... | https://stackoverflow.com/questions/79910925/undefined-symbols-with-switching-project-from-cocoapod-to-spm | swift, xcode, cocoapods, dependency-management, swift-package-manager | 1,773,952,361 |
se_79910884 | stackoverflow | MOBILE_DEVELOPMENT | error: "EldersWidget" requires a provisioning profile with the App Groups feature. Select a provisioning profile in the Signing & Capabilities editor | error: "EldersWidget" requires a provisioning profile with the App Groups feature. Select a provisioning profile in the Signing & Capabilities editor
I am new to iOS application code building and archiving. When I try to archive the project using the Xcode@5 task in my Azure DevOps YAML pipeline, I keep ... | https://stackoverflow.com/questions/79910884/error-elderswidget-requires-a-provisioning-profile-with-the-app-groups-featur | ios, swift, iphone, macos, apple-push-notifications | 1,773,946,223 |
se_69095781 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI: How to make phone vibrate? | SwiftUI: How to make phone vibrate?
So I understand how to make the phone give haptic feedback through this tutorial.
https://swifttom.com/2020/03/11/haptic-feedback-in-a-swiftui-button/
However, what I'm trying to figure out is how to make the iPhone actually vibrate, as in the vibration that occurs when receiving a ... | https://stackoverflow.com/questions/69095781/swiftui-how-to-make-phone-vibrate | swift, swiftui, iphone-vibrate | 1,631,061,458 |
se_31194758 | stackoverflow | MOBILE_DEVELOPMENT | Retrieve Facebook user ID in Swift | Retrieve Facebook user ID in Swift
I have a helper function that is grabbing the picture from a specific URL:
func getProfilePicture(fid: String) -> UIImage? {
if (fid != "") {
var imageURLString = "http://graph.facebook.com/" + fid + "/picture?type=large"
var imageURL = NSURL(string: imageURLStrin... | https://stackoverflow.com/questions/31194758/retrieve-facebook-user-id-in-swift | ios, swift, facebook-graph-api | 1,435,871,722 |
se_79910761 | stackoverflow | MOBILE_DEVELOPMENT | tvOS 26.3: Focus skips UICollectionView inside UITableViewCell with warning "already-visited container" | tvOS 26.3: Focus skips UICollectionView inside UITableViewCell with warning "already-visited container"
I am working on a tvOS app using Swift, where my UI structure is:
A UITableView
Each UITableViewCell contains a UICollectionView
The table has 3 sections:
Section 1 → Horizontal UICollectionView
Secti... | https://stackoverflow.com/questions/79910761/tvos-26-3-focus-skips-uicollectionview-inside-uitableviewcell-with-warning-alr | ios, swift, xcode, tvos, focus-engine | 1,773,932,067 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.