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_79257885 | stackoverflow | MOBILE_DEVELOPMENT | SwiftShield Obfuscation Fails to Exclude Pods Files Properly | SwiftShield Obfuscation Fails to Exclude Pods Files Properly
I am using SwiftShield to obfuscate my project, but despite using exclusion flags (--ignore-names, --ignore-targets), it continues to process certain files from the Pods directory, causing errors. Specifically, files like ResponseSerialization.swift and Conc... | https://stackoverflow.com/questions/79257885/swiftshield-obfuscation-fails-to-exclude-pods-files-properly | ios, swift, security, alamofire, obfuscation | 1,733,485,858 |
se_65927459 | stackoverflow | MOBILE_DEVELOPMENT | Playback controls in swiftui | Playback controls in swiftui
Attempting to use AVKit's AVPlayer to play a video without playback controls:
private let player = AVPlayer(url: URL(fileURLWithPath: Bundle.main.path(forResource: "videoToPlay", ofType: "mp4")!))
player.showsPlaybackControls = false
The above results in an error message that declarations... | https://stackoverflow.com/questions/65927459/playback-controls-in-swiftui | ios, swift, swiftui | 1,611,781,794 |
se_52951622 | stackoverflow | MOBILE_DEVELOPMENT | Apollo-IOS build error "Command PhaseScriptExecution failed with a nonzero exit code" | Apollo-IOS build error "Command PhaseScriptExecution failed with a nonzero exit code"
I'm trying to build a sample Apollo-IOS on Xcode 10. I have followed all the step describe in the docs:
Apolo-IOS getting started
There is an error as below
++ npx --no-install apollo codegen:generate --queries=./GraphQL/Qu... | https://stackoverflow.com/questions/52951622/apollo-ios-build-error-command-phasescriptexecution-failed-with-a-nonzero-exit | swift, apollo-ios | 1,540,305,106 |
se_79891050 | stackoverflow | MOBILE_DEVELOPMENT | Inexplicable white background below SwiftUI Webview | Inexplicable white background below SwiftUI Webview
I'm working on a pair of Swift projects, and one of them, running on an iPad, refuses to cooperate with this webview. The image below shows the whitespace below the editor. This only appears when the user scrolls down to the bottom of the editor's content. For contex... | https://stackoverflow.com/questions/79891050/inexplicable-white-background-below-swiftui-webview | ios, swift, swiftui, webview, uikit | 1,771,347,411 |
se_79888744 | stackoverflow | MOBILE_DEVELOPMENT | How to smoothly rebuild the AVComposition | How to smoothly rebuild the AVComposition
I am working on a video editing software in Swift and I am using AVComposition for video processing and editing them frame by frame.
Initially, I built the composition with one single track (full) and now, I allow the users to make a cut anywhere in the middle, but because AVC... | https://stackoverflow.com/questions/79888744/how-to-smoothly-rebuild-the-avcomposition | swift, macos, avfoundation, appkit, avcomposition | 1,770,985,240 |
se_79248494 | stackoverflow | MOBILE_DEVELOPMENT | Keyboard for Input in TableView | Keyboard for Input in TableView
Currently my spreadsheet has cells for data entry and if they are too low the keyboard overlaps them. I'm trying to make the table slide to the top when the keyboard appears and the input field remains visible. However, it is not possible to make this happen simultaneously with the appe... | https://stackoverflow.com/questions/79248494/keyboard-for-input-in-tableview | swift, uitableview, keyboard, uitextfield | 1,733,244,085 |
se_79872461 | stackoverflow | MOBILE_DEVELOPMENT | Xcode publishing issues. Watch app not included on xcode26 and server error when publishing from xcode 16 | Xcode publishing issues. Watch app not included on xcode26 and server error when publishing from xcode 16
I am working on an ios app with a companion watchos app. The watchos app was made in 2018, it uses watchkit and has a watchkit app target and a watchkit app extension target.
When I started working on it, the app ... | https://stackoverflow.com/questions/79872461/xcode-publishing-issues-watch-app-not-included-on-xcode26-and-server-error-when | ios, swift, xcode, app-store-connect | 1,768,961,764 |
se_79282041 | stackoverflow | MOBILE_DEVELOPMENT | Why is my swift alamofire sending get instead of post, also happened when i did not use the module? | Why is my swift alamofire sending get instead of post, also happened when i did not use the module?
import SwiftUI
import Alamofire
struct TestView: View {
// Function to send the POST request using Alamofire
func sendPostRequest() {
// URL and data
let url = ""
let param... | https://stackoverflow.com/questions/79282041/why-is-my-swift-alamofire-sending-get-instead-of-post-also-happened-when-i-did | swift, post, get, alamofire | 1,734,252,558 |
se_24666515 | stackoverflow | MOBILE_DEVELOPMENT | How do I make an attributed string using Swift? | How do I make an attributed string using Swift?
I am trying to make a coffee calculator. I need to display the amount of coffee in grams. The "g" symbol for grams needs to be attached to my UILabel that I am using to display the amount.
The numbers in the UILabel are changing dynamically with user input just fine, but... | https://stackoverflow.com/questions/24666515/how-do-i-make-an-attributed-string-using-swift | fonts, uilabel, swift, nsattributedstring | 1,404,958,864 |
se_79893803 | stackoverflow | MOBILE_DEVELOPMENT | How to sideload a custom Swift app for personal use without a paid Apple Developer Program? | How to sideload a custom Swift app for personal use without a paid Apple Developer Program?
Hi everyone,
I have developed a personal application using Swift and would like to install it on my own iPad. Since I am the only user and have no plans to publish this app to the App Store, I am looking for a way to use the ap... | https://stackoverflow.com/questions/79893803/how-to-sideload-a-custom-swift-app-for-personal-use-without-a-paid-apple-develop | ios, swift, sideloading | 1,771,730,482 |
se_39921673 | stackoverflow | MOBILE_DEVELOPMENT | create scrollable segment control (horizontally) | create scrollable segment control (horizontally)
i am trying to create a scrollable segment control, more precisely i need a segment control that has 5-10 or more choices/buttons but because there will be no space for all that buttons i need it to be scrollable, i need to make the segment control itself to be scrollab... | https://stackoverflow.com/questions/39921673/create-scrollable-segment-control-horizontally | swift, uisegmentedcontrol | 1,475,856,721 |
se_79818015 | stackoverflow | MOBILE_DEVELOPMENT | UITextField custom inputAccessoryView with custom inputView in iOS 26 | UITextField custom inputAccessoryView with custom inputView in iOS 26
I'm trying to use UIPickerView as the textfield's inputView and also add UIToolBar as the textfield's inputAccessoryView.
In iOS 26, it adds some weird transparent background (like a liquid glass effect, I guess) under the toolbar.
I want to preserv... | https://stackoverflow.com/questions/79818015/uitextfield-custom-inputaccessoryview-with-custom-inputview-in-ios-26 | ios, swift, uitextfield, ios26 | 1,762,965,995 |
se_79881082 | stackoverflow | MOBILE_DEVELOPMENT | How should an app gracefully handle passkey deletion? | How should an app gracefully handle passkey deletion?
I’m using passkeys with ASAuthorizationController (ASAuthorizationPlatformPublicKeyCredentialProvider). Registration and authentication work correctly on iOS 16+.
However, if the user explicitly deletes the passkey from the device, the system shows fallback UI like... | https://stackoverflow.com/questions/79881082/how-should-an-app-gracefully-handle-passkey-deletion | ios, swift, authentication, passkey | 1,770,035,564 |
se_79892747 | stackoverflow | MOBILE_DEVELOPMENT | Connect multiple drawing tab with Native iOS using Swift UI and bluetooth core functionality | Connect multiple drawing tab with Native iOS using Swift UI and bluetooth core functionality
I am building a native iOS app (Swift, CoreBluetooth) that needs to connect to multiple BLE drawing devices (up to 4 simultaneously) and receive streaming drawing data.
Current State
Scanning works
Multiple peripherals conne... | https://stackoverflow.com/questions/79892747/connect-multiple-drawing-tab-with-native-ios-using-swift-ui-and-bluetooth-core-f | ios, swift, bluetooth-lowenergy, core-bluetooth | 1,771,573,784 |
se_69572419 | stackoverflow | MOBILE_DEVELOPMENT | How to start a background task with the new Swift Structured Concurrency? | How to start a background task with the new Swift Structured Concurrency?
I'm writing a test in Swift. The function that I'm testing blocks the current thread so I want to run it on the background. Previously I would wrap it in DispatchQueue.global.async {}.
With Swift's new structured concurrency, I found Task.detach... | https://stackoverflow.com/questions/69572419/how-to-start-a-background-task-with-the-new-swift-structured-concurrency | swift, async-await | 1,634,221,440 |
se_68049568 | stackoverflow | MOBILE_DEVELOPMENT | RealityKit – Anchor is ignoring parent anchor transform | RealityKit – Anchor is ignoring parent anchor transform
Say I have this:
var a = getSphere(0.05, .white)
var b = getSphere(0.04, UIColor.brown)
var c = getSphere(0.03, UIColor.cyan)
var aa = AnchorEntity()
var bb = AnchorEntity()
var cc = AnchorEntity()
aa.transform.translation.y = -0.5
aa.addChild(bb)
bb.addChil... | https://stackoverflow.com/questions/68049568/realitykit-anchor-is-ignoring-parent-anchor-transform | swift, augmented-reality, arkit, realitykit | 1,624,126,099 |
se_68163199 | stackoverflow | MOBILE_DEVELOPMENT | simd_quatF to euler angle | simd_quatF to euler angle
I'm trying to convert my quats to euler, but out of x/y/z components, only my X has accurate value and y/z is incorrect.
func quatToEulerAngles(_ quat: simd_quatf) -> SIMD3<Double>{
var angles = SIMD3<Double>();
let qfloat = quat.vector
let q = SIMD4<Double>(Double(qfloa... | https://stackoverflow.com/questions/68163199/simd-quatf-to-euler-angle | swift, quaternions, euler-angles | 1,624,882,530 |
se_44183770 | stackoverflow | MOBILE_DEVELOPMENT | delegating initializers in structs are not marked with 'convenience' | delegating initializers in structs are not marked with 'convenience'
I keep getting this error and I don't understand why.
error: delegating initializers in structs are not marked with 'convenience'
This is what I have (as an example), a DeprecatedCurrency and a SupportedCurrency.
struct DeprecatedCur... | https://stackoverflow.com/questions/44183770/delegating-initializers-in-structs-are-not-marked-with-convenience | swift | 1,495,724,629 |
se_56453525 | stackoverflow | MOBILE_DEVELOPMENT | "Missing required entitlement" for NFCTagReaderSession | "Missing required entitlement" for NFCTagReaderSession
I'm diving into iOS 13's new CoreNFC capabilities, and I'm struggling to get NFCTagReaderSession working. After setting up my entitlements and instantiating an NFCTagReaderSession and delegate I attempt to start the session by calling nfcTagReaderSessio... | https://stackoverflow.com/questions/56453525/missing-required-entitlement-for-nfctagreadersession | swift, nfc, core-nfc, ios13 | 1,559,701,385 |
se_79891261 | stackoverflow | MOBILE_DEVELOPMENT | How to get accurate Mouse/Trackpad deltas on macOS when using CGWarpMouseCursorPosition? | How to get accurate Mouse/Trackpad deltas on macOS when using CGWarpMouseCursorPosition?
I am working on a remote control application for macOS where I need to maintain two "virtual" cursors:
Remote Cursor: Follows the remote user's movements.
Local Cursor: Follows the local user's physical mouse/trackpad movements.... | https://stackoverflow.com/questions/79891261/how-to-get-accurate-mouse-trackpad-deltas-on-macos-when-using-cgwarpmousecursorp | swift, objective-c, macos, mouse | 1,771,381,943 |
se_79891216 | stackoverflow | MOBILE_DEVELOPMENT | Receive file open event without NSApplication | Receive file open event without NSApplication
I need receive a launch-time file open event in my app (I.e. I needed to know when it was launched by double-clicking an associated file). However I also need to avoid using NSApplication for... complex reasons. ([edit] I need to avoid registering with the window server).
... | https://stackoverflow.com/questions/79891216/receive-file-open-event-without-nsapplication | swift, appkit, appleevents | 1,771,369,602 |
se_58445777 | stackoverflow | MOBILE_DEVELOPMENT | How to autofill credit/debit-card details in inputfield in amazon.in in wkwebview in ios app? | How to autofill credit/debit-card details in inputfield in amazon.in in wkwebview in ios app?
I'm developing iOS app in which there is webview(wkwebview), there will be website loaded in wkwebview like amazon.in
I have credit/debit-card details like card-number, exp date, etc. securely stored in my iOS app, i want to ... | https://stackoverflow.com/questions/58445777/how-to-autofill-credit-debit-card-details-in-inputfield-in-amazon-in-in-wkwebvie | javascript, ios, swift, webkit, wkwebview | 1,571,383,092 |
se_79889876 | stackoverflow | MOBILE_DEVELOPMENT | Verbose Swift code, looking for advice on simplifying and improving | Verbose Swift code, looking for advice on simplifying and improving
I'm currently working my way through Paul Hudson's 100 Days of SwiftUI.
On Day 19, there's a challenge to create a unit conversion app.
I've cobbled something together and it works but it almost certainly can be improved and in the name of learning I'... | https://stackoverflow.com/questions/79889876/verbose-swift-code-looking-for-advice-on-simplifying-and-improving | ios, swift, swiftui | 1,771,186,354 |
se_58131299 | stackoverflow | MOBILE_DEVELOPMENT | Xcode Testflight Validate ERROR ITMS-90778 NDEF is disallowed | Xcode Testflight Validate ERROR ITMS-90778 NDEF is disallowed
I am trying to upload my app to TestFlight, which using CoreNFC (NDEF).
Unfortunately, I got the error message on Testflight Validate part in (SDK version 13 and 13.1).
I already tried this: Xcode 11 beta can't upload app to TestFlight
but it will Lose N... | https://stackoverflow.com/questions/58131299/xcode-testflight-validate-error-itms-90778-ndef-is-disallowed | ios, swift, xcode, nfc, ndef | 1,569,575,165 |
se_75534296 | stackoverflow | MOBILE_DEVELOPMENT | Swift Charts: Fixed size for Y axis labels, for perfect alignment with multiple vertically aligned charts | Swift Charts: Fixed size for Y axis labels, for perfect alignment with multiple vertically aligned charts
I have multiple charts stacked vertically in a view.
All charts have a common X axis made of Date (same range for all charts)
The Y axis differ but are all Double values
Problem: the Y axis label differ in size (s... | https://stackoverflow.com/questions/75534296/swift-charts-fixed-size-for-y-axis-labels-for-perfect-alignment-with-multiple | swift, swiftui, charts | 1,677,076,942 |
se_78473052 | stackoverflow | MOBILE_DEVELOPMENT | XCTest: Disable test executions for abstract base class | XCTest: Disable test executions for abstract base class
I have the following classes in the test target:
class AbstractBaseClass: XCTestCase {
var sut: SystemInterface!
func test1(){}
func test2(){}
func test3(){}
}
And then I have 2 more subclasses:
final class TestSystem1: AbstractBaseClass {
func... | https://stackoverflow.com/questions/78473052/xctest-disable-test-executions-for-abstract-base-class | swift, xcode, oop, xctest, xctestcase | 1,715,611,391 |
se_79842131 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI: Zoom-navigation-transitions not working in tabViewBottomAccessory with a view model | SwiftUI: Zoom-navigation-transitions not working in tabViewBottomAccessory with a view model
I found that the zoom navigation transition with matchedTransitionSource in tabViewBottomAccessory does not work when the isPresented state is set through a published variable in an ObservableObject. So I get the same transiti... | https://stackoverflow.com/questions/79842131/swiftui-zoom-navigation-transitions-not-working-in-tabviewbottomaccessory-with | ios, swift, swiftui, ios-animations | 1,765,295,453 |
se_70316155 | stackoverflow | MOBILE_DEVELOPMENT | UICollectionView Top spacing | UICollectionView Top spacing
i have a Problem with my UICollectionView inside my Swift Xcode Project
I checked all insets and margins, I tried the ViewController's: "Adjust Scroll View Insets" and lots of other stuff, but none of them did change this in any way.
i want to reduce / remove that top spacing above the fi... | https://stackoverflow.com/questions/70316155/uicollectionview-top-spacing | ios, swift, xcode, uicollectionview, spacing | 1,639,234,334 |
se_79825395 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI @FocusState doesn’t focus a desired TextField | 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). Here’s a minimal example:
import SwiftUI
import Combine
class M... | https://stackoverflow.com/questions/79825395/swiftui-focusstate-doesn-t-focus-a-desired-textfield | ios, swift, swiftui | 1,763,634,841 |
se_79341628 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI - StateObject in parent view is unavailable in child view model | SwiftUI - StateObject in parent view is unavailable in child view model
// In my root view aka Parent View
import SwiftUI
struct RootView: View {
@StateObject private var devices = DevicesViewModel()
var body: some View {
ScrollView {
UnitStatusCard(devicesVM: devices)
}
... | https://stackoverflow.com/questions/79341628/swiftui-stateobject-in-parent-view-is-unavailable-in-child-view-model | ios, swift, swiftui, mobile | 1,736,405,610 |
se_57109839 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI - Change TabBar Icon Color | SwiftUI - Change TabBar Icon Color
I can't change the TabBar Color in SwiftUI. I try it with the TabbedView, with the Image/Text and with a Stack. Nothing works for me.
using .foregroundColor doesn't work.
TabbedView(selection: $selection){
TextView()
.tag(0)
.tabItemLabel(
VStack {
Image("Calendar")
.for... | https://stackoverflow.com/questions/57109839/swiftui-change-tabbar-icon-color | swift, view, colors, tabbar, swiftui | 1,563,529,611 |
se_79889985 | stackoverflow | MOBILE_DEVELOPMENT | Swift Kingfisher Retrieve Original Image | Swift Kingfisher Retrieve Original Image
I’m using Kingfisher library in a SwiftUI chat view to display images using KFImage(url).
I now need to retrieve the original downloaded image so I can upload it to my backend.
However, when I extract the image Kingfisher gives me, the file size becomes larger than the original... | https://stackoverflow.com/questions/79889985/swift-kingfisher-retrieve-original-image | ios, swift, swiftui, kingfisher | 1,771,210,788 |
se_79873799 | stackoverflow | MOBILE_DEVELOPMENT | Suggestions for portfolio projects but not the obvious one | Suggestions for portfolio projects but not the obvious one
I just completed my SwiftUI and Swift tutorials and some more courses, in short I am whole ready to make a app for iOS but the issue is its for my portfolio but when I am asking AI or even googling stuff. I am finding the same things (weather app, calorie trac... | https://stackoverflow.com/questions/79873799/suggestions-for-portfolio-projects-but-not-the-obvious-one | ios, swift, applescript, project, portfolio | 1,769,089,596 |
se_79875386 | stackoverflow | MOBILE_DEVELOPMENT | Why does my page scroll up when I tap on a button? | Why does my page scroll up when I tap on a button?
I have a fairly simple view.
It's a trip itinerary with two parts:
A horizontally scrolling list of dates at the top of the page.
A vertically scrolling list of days (each day contains many trip stops).
I've added logic for .scrollPosition() so that as the user sc... | https://stackoverflow.com/questions/79875386/why-does-my-page-scroll-up-when-i-tap-on-a-button | ios, swift, swiftui | 1,769,285,636 |
se_79885990 | stackoverflow | MOBILE_DEVELOPMENT | iOS websocket is sometimes broken from minimize and reopen | iOS websocket is sometimes broken from minimize and reopen
I am working for trading platform development using swiftUI and urlsession, URLSessionWebSocketTask, and background&foreground network monitor including wifi/mobile internet. Sometimes app doesn’t reconnect from minimize and reopen or auto network switch or ma... | https://stackoverflow.com/questions/79885990/ios-websocket-is-sometimes-broken-from-minimize-and-reopen | ios, swift, swiftui, urlsession | 1,770,652,684 |
se_79889096 | stackoverflow | MOBILE_DEVELOPMENT | Why does Combine.PassthroughSubject drop values sent synchronously in handleEvents(receiveSubscription:)? | Why does Combine.PassthroughSubject drop values sent synchronously in handleEvents(receiveSubscription:)?
I'm trying to understand Combine's subscription lifecycle and why PassthroughSubject drops values when they are sent synchronously inside handleEvents(receiveSubscription:).
import Combine
import XCTest
class Com... | https://stackoverflow.com/questions/79889096/why-does-combine-passthroughsubject-drop-values-sent-synchronously-in-handleeven | swift, multithreading, grand-central-dispatch, combine | 1,771,029,662 |
se_79889777 | stackoverflow | MOBILE_DEVELOPMENT | Why type does not conform protocol requirement? | Why type does not conform protocol requirement?
Given the following snippet
protocol CanWork { }
protocol CanWorkSkilfully: CanWork { }
protocol HasWorker {
var worker: CanWork { get }
}
struct SkilledWorker: CanWorkSkilfully { }
struct DifficultJob {
// only skilled worker can do this job
let worker: ... | https://stackoverflow.com/questions/79889777/why-type-does-not-conform-protocol-requirement | swift, swift-protocols | 1,771,172,888 |
se_79889699 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI: Animate newly inserted characters in TextEditor (scale from 1.2 → 1.0 while typing) | SwiftUI: Animate newly inserted characters in TextEditor (scale from 1.2 → 1.0 while typing)
I want to reproduce this typing effect:
https://youtube.com/shorts/ug0gylFjymQ
When the user types, each newly inserted character briefly appears slightly larger (~1.2 scale) and animates down to 1.0. The animation applies onl... | https://stackoverflow.com/questions/79889699/swiftui-animate-newly-inserted-characters-in-texteditor-scale-from-1-2-%e2%86%92-1-0-w | ios, swift, animation, swiftui, textkit | 1,771,162,522 |
se_53539410 | stackoverflow | MOBILE_DEVELOPMENT | How to calculate relativeDuration in animateKeyframes | How to calculate relativeDuration in animateKeyframes
I'm trying to understand how to use UIView.animateKeyframes however I cannot for the life of me understand how to calculate the timings / durations.
I am trying to achieve the following:
I expect this entire animation to last 10 seconds, made up of...
first ad... | https://stackoverflow.com/questions/53539410/how-to-calculate-relativeduration-in-animatekeyframes | swift, uiview, uiviewanimation | 1,543,495,552 |
se_52293670 | stackoverflow | MOBILE_DEVELOPMENT | How to convert String Array to String in Swift | How to convert String Array to String in Swift
I need to convert a String array into single String.
This is my array:
["1","2","3","4","5"]
I need to get this:
"["1","2","3","4","5"]" | https://stackoverflow.com/questions/52293670/how-to-convert-string-array-to-string-in-swift | arrays, swift | 1,536,750,351 |
se_51954309 | stackoverflow | MOBILE_DEVELOPMENT | Show message if all textfields are complete, correctly in swift 4? | Show message if all textfields are complete, correctly in swift 4?
I am creating a email input and a name input, and I need to show a message when all fields are complete. But for some reason, when empty fields are there and the user clicks on the submit button, the success message shows instead. Is there way to put i... | https://stackoverflow.com/questions/51954309/show-message-if-all-textfields-are-complete-correctly-in-swift-4 | ios, swift, uitextfield | 1,534,874,410 |
se_52181335 | stackoverflow | MOBILE_DEVELOPMENT | populate multidimensional struct array with array data | populate multidimensional struct array with array data
I have some arrays which I am filling with data in my application. So when I initialize it, the arrays are - to some part - empty.
When my arrays are filled with all nessecary data, I want to save them in a multidimensional array in order to populate a table with... | https://stackoverflow.com/questions/52181335/populate-multidimensional-struct-array-with-array-data | arrays, swift | 1,536,138,659 |
se_54229430 | stackoverflow | MOBILE_DEVELOPMENT | Is there a way to iterate over a Dictionary of the form Key:[Value1:[Value2]]? | Is there a way to iterate over a Dictionary of the form Key:[Value1:[Value2]]?
I am trying to iterate over a Dictionary with a Key:[Value1:[Value2]] form.
Essentially, I am trying to iterate over the dictionary one item at a time. However, I am only able to print the iteration in the form
Key
(["Value1":[value2... | https://stackoverflow.com/questions/54229430/is-there-a-way-to-iterate-over-a-dictionary-of-the-form-keyvalue1value2 | swift, loops, dictionary | 1,547,702,112 |
se_52423439 | stackoverflow | MOBILE_DEVELOPMENT | Canot assign value of type 'UIView' to type --class conforming to UIView-- | Canot assign value of type 'UIView' to type --class conforming to UIView--
I have the following class conforming to UIView:
import UIKit
class LocationInformationCalloutView: UIView {
:
:
Then I have a second class that looks like this:
class LocationInformationAnnotationView: MKAnnotationVie... | https://stackoverflow.com/questions/52423439/canot-assign-value-of-type-uiview-to-type-class-conforming-to-uiview | ios, swift, class, uiview, casting | 1,537,440,676 |
se_52678438 | stackoverflow | MOBILE_DEVELOPMENT | cannot use instance member 'country' within property initializer; property initializers run before 'self' is available | cannot use instance member 'country' within property initializer; property initializers run before 'self' is available
Attempting to add search function, while doing this I receive the following error message "cannot use instance member 'country' within property initializer; property initializers run b... | https://stackoverflow.com/questions/52678438/cannot-use-instance-member-country-within-property-initializer-property-initi | arrays, swift, initialization | 1,538,824,154 |
se_52062213 | stackoverflow | MOBILE_DEVELOPMENT | Swift function with both completion handler and return | Swift function with both completion handler and return
How do I make so that a Swift function returns a value and has a completion handler at the same time? The idea is that the function first returns a provisional result, and then the final result. Something like:
func method(completion: (Int) -> ()) {
return 2
... | https://stackoverflow.com/questions/52062213/swift-function-with-both-completion-handler-and-return | swift | 1,535,472,652 |
se_53993119 | stackoverflow | MOBILE_DEVELOPMENT | Swift iOS Background Color View animation as Timer | Swift iOS Background Color View animation as Timer
I am trying to have the background on my viewController start out blue. As one minute passes I want the blue to slowly go down on the screen in 60 seconds. It has finished but the screen is not white.
Here is what I have tried.
I have created a blue view and divide... | https://stackoverflow.com/questions/53993119/swift-ios-background-color-view-animation-as-timer | ios, swift, uiviewanimation | 1,546,319,155 |
se_52717315 | stackoverflow | MOBILE_DEVELOPMENT | How to prevent a UIView.animate from being called | How to prevent a UIView.animate from being called
I'd like to reproduce the behavior of WhatsApp buttons on the ongoing call view: they disappear a few seconds after appearing, and every time the user taps the screen, they appear again.
Let's say I have those two buttons,
@IBOutlet weak var callButton: UIButton!
@I... | https://stackoverflow.com/questions/52717315/how-to-prevent-a-uiview-animate-from-being-called | ios, swift, uiview, uiviewanimation | 1,539,076,193 |
se_54273805 | stackoverflow | MOBILE_DEVELOPMENT | Get the sum of the values of the same label from the struct | Get the sum of the values of the same label from the struct
I need to add the unappeared to the Array from this information. If there is a duplicate, the money will be summed up and then saved into one. How can I achieve this? The data may be a lot.
import UIKit
struct TestData {
let Label : String
var Money... | https://stackoverflow.com/questions/54273805/get-the-sum-of-the-values-of-the-same-label-from-the-struct | arrays, swift, generics, struct | 1,547,961,518 |
se_55299573 | stackoverflow | MOBILE_DEVELOPMENT | Accessing swift dictionary members using AnyObject | Accessing swift dictionary members using AnyObject
I'm having trouble with understanding how to properly do unwrapping in Swift. Here is the situation:
I have these two classes:
class Alpha
{
var val: Int
init(x: Int)
{
val = x
}
func doSomething() -> Int
{
// does stuff and returns an Int val... | https://stackoverflow.com/questions/55299573/accessing-swift-dictionary-members-using-anyobject | swift, dictionary, syntax | 1,553,257,579 |
se_53683367 | stackoverflow | MOBILE_DEVELOPMENT | How to avoid Nil / nan in simple calculation | How to avoid Nil / nan in simple calculation
I'm a very beginner in swift, and my learning project is to build a 'cross multiplication' calculator. But how do I avoid that incase of an impossible calculation the text label is giving the output NaN or the app crashes.
I thought it should be after the result that, the ... | https://stackoverflow.com/questions/53683367/how-to-avoid-nil-nan-in-simple-calculation | ios, swift, uitextfield | 1,544,278,363 |
se_54144911 | stackoverflow | MOBILE_DEVELOPMENT | Does tap gestures added to cell gets preserved on reuse? | Does tap gestures added to cell gets preserved on reuse?
I have a cell with an image. I am adding tap gesture to it tableview delegate method. When the cell gets reused, does the tap gesture duplicated? What happens to the tap gesture?
class CalendarCell: UITableViewCell {
@IBOutlet weak var locationImageView: UI... | https://stackoverflow.com/questions/54144911/does-tap-gestures-added-to-cell-gets-preserved-on-reuse | ios, swift, uitableview | 1,547,203,488 |
se_52565721 | stackoverflow | MOBILE_DEVELOPMENT | textViewDidBeginEditing on 2 separate textViews in swift | textViewDidBeginEditing on 2 separate textViews in swift
I have 2 separate textViews that I want to trigger an event when each of them are tapped. the termTextView triggers fine, but when termTextView is triggered first, the definitionTextView does not trigger when tapped. What can I do to fix this issue?
extension s... | https://stackoverflow.com/questions/52565721/textviewdidbeginediting-on-2-separate-textviews-in-swift | swift, uitextview, uitextviewdelegate | 1,538,202,142 |
se_79889178 | stackoverflow | MOBILE_DEVELOPMENT | Can I create a getter/setter capable of mutating a value inside of an Actor | Can I create a getter/setter capable of mutating a value inside of an Actor
I'm trying to bring a Veteran NSObject to the UI with as much modern concurrency saftey as possible.
I could change the actor to a class and all of my errors go away.
For saftey I'm trying to keep it.
VeteranNSObject - A non-Sendable object ... | https://stackoverflow.com/questions/79889178/can-i-create-a-getter-setter-capable-of-mutating-a-value-inside-of-an-actor | swift, swiftui | 1,771,051,866 |
se_56514998 | stackoverflow | MOBILE_DEVELOPMENT | How to find all available images for Image(systemName:) | How to find all available images for Image(systemName:)
Where can I find all the system images that are available in the initializer Image(systemName:)?
I've only been using "chevron" and "star.fill" so far, as discovered in Apple's SwiftUI tutorial series. However, I haven't been able to find a full list of icons in ... | https://stackoverflow.com/questions/56514998/how-to-find-all-available-images-for-imagesystemname | ios, swift, swiftui, sf-symbols | 1,560,087,082 |
se_79885009 | stackoverflow | MOBILE_DEVELOPMENT | How to make overlapping physics bodies to resolve collision more "gently" in RealityKit (like in SceneKit) | How to make overlapping physics bodies to resolve collision more "gently" in RealityKit (like in SceneKit)
I am migrating my SceneKit games to RealityKit, and I noticed some changes in physics simulation. When 2 bodies overlap, RealityKit resolves the collision by moving the bodies apart abruptly and quickly... | https://stackoverflow.com/questions/79885009/how-to-make-overlapping-physics-bodies-to-resolve-collision-more-gently-in-rea | ios, swift, scenekit, realitykit | 1,770,489,826 |
se_79889120 | stackoverflow | MOBILE_DEVELOPMENT | Sharing ModelContext between WindowGroup and NSObject | Sharing ModelContext between WindowGroup and NSObject
I'm working on a SwiftUI MacOS application that currently has two windows, the primary window, and a command palette window. I'm still pretty new to SwiftUI having only picked it up a couple of months ago, but since I couldn't get the SwiftUI Window struct to work ... | https://stackoverflow.com/questions/79889120/sharing-modelcontext-between-windowgroup-and-nsobject | swift, swiftui, appkit, swiftdata | 1,771,035,509 |
se_76241232 | stackoverflow | MOBILE_DEVELOPMENT | Binding with optional Value causes runtime crash | Binding with optional Value causes runtime crash
I have a binding with optional String as a type and in the parent view I have if condition which checks whether it is has value or not. Depending on this condition I show or hide the child view. When I make name value nil the app is crashing, below you find code example... | https://stackoverflow.com/questions/76241232/binding-with-optional-value-causes-runtime-crash | ios, swift, swiftui, binding | 1,683,955,951 |
se_52254707 | stackoverflow | MOBILE_DEVELOPMENT | Failing to show UIAlertController due to - '''Application tried to present modally an active controller' | Failing to show UIAlertController due to - '''Application tried to present modally an active controller'
I have an application that displays documents in a UICollectionView. Each UICollectionViewCell has a button (distinct from that carried out by didSelectItemAt). This button brings up a custom popup ... | https://stackoverflow.com/questions/52254707/failing-to-show-uialertcontroller-due-to-application-tried-to-present-modal | ios, swift, uialertcontroller | 1,536,571,513 |
se_52439793 | stackoverflow | MOBILE_DEVELOPMENT | Is there a way to concatenate the name of a var in swift? | Is there a way to concatenate the name of a var in swift?
var object1 = "C_active.scn"
var object86 = "Soap.scn"
var object41 = "image.scn"
var object9 = "NaCl.scn"
Name of different .SCN files
public func addBox(sceneView: ARSCNView) {
let imagePlaneScene = SCNScene(named: "art.scnassets/" + object1)
let imagePla... | https://stackoverflow.com/questions/52439793/is-there-a-way-to-concatenate-the-name-of-a-var-in-swift | swift, string, concatenation, var | 1,537,519,087 |
se_56376511 | stackoverflow | MOBILE_DEVELOPMENT | How to change dictionary keys only? Without change values swift | How to change dictionary keys only? Without change values swift
I have array like this.
var Array = [Int:[String:Any]]()
I just update the values
let updateValue = ["Name":tripName!,"date":firstDate,"year":year,"startData":startDateValue,"endDate":endDateValue,"countryName":countrname!,"totelBudjet":totelBudjet,... | https://stackoverflow.com/questions/56376511/how-to-change-dictionary-keys-only-without-change-values-swift | ios, arrays, swift, sorting, dictionary | 1,559,212,418 |
se_53080523 | stackoverflow | MOBILE_DEVELOPMENT | UITableview function "DidselectRowAt" show to different target viewcontroller | UITableview function "DidselectRowAt" show to different target viewcontroller
I have a tableview, and I use didSelectRowAtIndexPath to filter which indexpath to which viewController.
I try to use following code, but I failed.
What's wrong with me.
Thanks.
func tableView(_ tableView: UITableView, didSelectR... | https://stackoverflow.com/questions/53080523/uitableview-function-didselectrowat-show-to-different-target-viewcontroller | ios, swift, uitableview, tableview | 1,540,979,322 |
se_52296691 | stackoverflow | MOBILE_DEVELOPMENT | How to access a var from an extension of the same ViewController | How to access a var from an extension of the same ViewController
I created a var in my ViewController:
class ViewController: UIViewController {
var options: Options?
}
In viewWillAppear I set the options
/ grab the options
let optionsFetch: NSFetchRequest<Options> = Options.fetchRequest()
do{
let... | https://stackoverflow.com/questions/52296691/how-to-access-a-var-from-an-extension-of-the-same-viewcontroller | swift, uiviewcontroller, extension-methods | 1,536,759,872 |
se_54007200 | stackoverflow | MOBILE_DEVELOPMENT | Unable to change format of date in swift | Unable to change format of date in swift
I am getting date 2019-01-02 18:10:00 +0000 like this now i want to convert it to dd/MM/yyyy HH:mm format but i'm unable to get it.
I am using this method in date extension
func getDate() -> Date {
let formatter = DateFormatter()
formatter.timeZone = TimeZone(abbrevia... | https://stackoverflow.com/questions/54007200/unable-to-change-format-of-date-in-swift | swift, date, dateformatter | 1,546,435,555 |
se_52275065 | stackoverflow | MOBILE_DEVELOPMENT | How to convert date yyyy-mm-dd'T'HH:mm:ss.SSSZ in swift | How to convert date yyyy-mm-dd'T'HH:mm:ss.SSSZ in swift
I am convert date from "yyyy-mm-dd'T'HH:mm:ss.SSSZ" to "dd-mm-yyyy" and my date is "2018-09-11T09:53:25.000+0000" and this is my code
let dateFormatter = DateFormatter()
dateFormatter.locale = Locale(identifier: "en_US_POSIX")
dateFormatter.dateFormat = ... | https://stackoverflow.com/questions/52275065/how-to-convert-date-yyyy-mm-ddthhmmss-sssz-in-swift | ios, iphone, swift, xcode, dateformatter | 1,536,666,110 |
se_52437628 | stackoverflow | MOBILE_DEVELOPMENT | Error : Cannot convert value of type 'String.Type' to expected dictionary key type 'String' | Error : Cannot convert value of type 'String.Type' to expected dictionary key type 'String'
The following is my code where in the last line of the code I am getting an error as mentioned in the title. what should i do??
let jsonObject: [Any] = [
[
"userName": "meUser",
"emailID": ... | https://stackoverflow.com/questions/52437628/error-cannot-convert-value-of-type-string-type-to-expected-dictionary-key-ty | ios, swift, dictionary | 1,537,510,311 |
se_52495076 | stackoverflow | MOBILE_DEVELOPMENT | Cannot convert 'ViewController.Type' to 'UIViewController in Facebook shareDialog | Cannot convert 'ViewController.Type' to 'UIViewController in Facebook shareDialog
I think this is outdated on Facebook swift documentation and it is giving errors. I fixed the first line error but it is giving error in viewcontroller line
I am facing this error
Cannot convert value of type 'ViewCont... | https://stackoverflow.com/questions/52495076/cannot-convert-viewcontroller-type-to-uiviewcontroller-in-facebook-sharedialo | swift | 1,537,868,476 |
se_52409221 | stackoverflow | MOBILE_DEVELOPMENT | Cannot assign value of type 'Int!' to type 'String' | Cannot assign value of type 'Int!' to type 'String'
operation = (sender as AnyObject).tag
i'm working on a calculator app, while in the bottom i'm trying to send my operations to the sender.tag but I get the error
Cannot assign value of type 'Int!' to type 'String'
This error also generates mor... | https://stackoverflow.com/questions/52409221/cannot-assign-value-of-type-int-to-type-string | ios, swift | 1,537,370,355 |
se_51783222 | stackoverflow | MOBILE_DEVELOPMENT | Swift bool data not passed to tableview cell | Swift bool data not passed to tableview cell
I have a tableview that gets the data from an API. There is a isUnlocked variable that is also getting value from the API.
But besides the title and picture, the isUnlocked variable still has the default value set in the custom tableview class.
I pass the value in cellForR... | https://stackoverflow.com/questions/51783222/swift-bool-data-not-passed-to-tableview-cell | ios, swift | 1,533,893,057 |
se_53815893 | stackoverflow | MOBILE_DEVELOPMENT | Overriden method not being called | Overriden method not being called
I have a problem that I can't override function.
My parent class below:
class A: UIViewController {
func parentalGate() {
let appearance = SCLAlertView.SCLAppearance(
kTitleFont: UIFont(name: "Futura", size: 20)!,
kTextFont: UIFont(name: "Futura", ... | https://stackoverflow.com/questions/53815893/overriden-method-not-being-called | ios, swift, overriding | 1,545,052,026 |
se_53652769 | stackoverflow | MOBILE_DEVELOPMENT | How to remove empty key value pair from dictionary in swift | How to remove empty key value pair from dictionary in swift
Lets say I have a dictionary
let dic = ["a": "1", "b": "2", "c": "", "d": "3"]
I want to delete "c" key with its value | https://stackoverflow.com/questions/53652769/how-to-remove-empty-key-value-pair-from-dictionary-in-swift | swift, dictionary | 1,544,103,766 |
se_38714272 | stackoverflow | MOBILE_DEVELOPMENT | how to make UITextView height dynamic according to text length? | how to make UITextView height dynamic according to text length?
As you can see in this image
the UITextView changes it's height according to the text length, I want to make it adjust it's height according to the text length.
*I saw other questions, but solutions there didn't work for me | https://stackoverflow.com/questions/38714272/how-to-make-uitextview-height-dynamic-according-to-text-length | ios, swift, uitextview | 1,470,122,909 |
se_29828136 | stackoverflow | MOBILE_DEVELOPMENT | ERROR ITMS-90363: "Invalid Info.plist key. The key 'CFBundleIcons~ipad' in bundle MyApp.app… | ERROR ITMS-90363: "Invalid Info.plist key. The key 'CFBundleIcons~ipad' in bundle MyApp.app…
I'm getting this error when submitting my app to iTunes Connect via Xcode 6.3:
ERROR ITMS-90363: "Invalid Info.plist key. The key
'CFBundleIcons~ipad' in bundle MyApp.app/PlugIns/MyApp WatchKit
Extension.a... | https://stackoverflow.com/questions/29828136/error-itms-90363-invalid-info-plist-key-the-key-cfbundleiconsipad-in-bundl | ios, xcode, swift, app-store-connect, watchkit | 1,429,803,346 |
se_31731751 | stackoverflow | MOBILE_DEVELOPMENT | Disable swipe back gesture in Swift | Disable swipe back gesture in Swift
Been looking around on here for a while but can't seem to find a working solution.
I'm trying to disable the swipe to go back to previous view gesture, in Swift.
I've tried a variety of solutions including:
self.navigationController?.interactivePopGestureRecognizer.enabled = fals... | https://stackoverflow.com/questions/31731751/disable-swipe-back-gesture-in-swift | ios, swift, uinavigationcontroller | 1,438,282,089 |
se_76040782 | stackoverflow | MOBILE_DEVELOPMENT | Specify orientations on Swift Playgrounds app? | Specify orientations on Swift Playgrounds app?
I need to lock a Swift Playgrounds app to a specific orientation, but am having difficulties due to the lack of an Info.plist. Playgrounds apps are not compatible with plist files, making any sort of property edits as you would in a normal Xcode project impossible.
All pr... | https://stackoverflow.com/questions/76040782/specify-orientations-on-swift-playgrounds-app | ios, swift, swift-playground | 1,681,787,090 |
se_59822245 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI optional environment object | SwiftUI optional environment object
I'm using @EnvironmentObject like this:
struct MyView: View {
@EnvironmentObject var object: MyObject
...
}
but my code doesn't need there to be a value for object.
Just making this optional doesn't work (doesn't even compile - Property type 'MyObject?' does not match that ... | https://stackoverflow.com/questions/59822245/swiftui-optional-environment-object | swift, swiftui, option-type | 1,579,519,417 |
se_79888069 | stackoverflow | MOBILE_DEVELOPMENT | Why isn't this Lottie animating? | Why isn't this Lottie animating?
this is a small minimal snippet for my code. In this code, I can't seem to start the animation of the Lottie. Why isn't it animating? Can anybody help? Thanks.
import Lottie
struct TestLottie: View {
let animating: Bool
var body: some View {
LottieView(animati... | https://stackoverflow.com/questions/79888069/why-isnt-this-lottie-animating | ios, swift, swiftui, lottie | 1,770,896,220 |
se_58609030 | stackoverflow | MOBILE_DEVELOPMENT | How to change height of a Picker with SegmentedPickerStyle() in SwiftUI? | How to change height of a Picker with SegmentedPickerStyle() in SwiftUI?
How do I change the Picker Frame in SwiftUI?
Picker(selection: .constant(1), label: Text("Picker")) {
Text("Hello").tag(1)
Text("World").tag(2)
}
.frame(height: 60)
.pickerStyle(SegmentedPickerStyle())
We expect the picker height to eq... | https://stackoverflow.com/questions/58609030/how-to-change-height-of-a-picker-with-segmentedpickerstyle-in-swiftui | ios, swift, swiftui | 1,572,357,872 |
se_56361762 | stackoverflow | MOBILE_DEVELOPMENT | How to make UIFont conform to decodable | How to make UIFont conform to decodable
I'm trying to make UIFont conform to Decodable, but I'm having a hard time.
I currently have solution where im wrapping the UIFont in a Font struct like this
public struct Font: Decodable{
let font: UIFont
private enum CodingKeys: String, CodingKey {
case siz... | https://stackoverflow.com/questions/56361762/how-to-make-uifont-conform-to-decodable | ios, swift, uikit, decodable | 1,559,136,432 |
se_31716413 | stackoverflow | MOBILE_DEVELOPMENT | Xcode not automatically creating bridging header? | Xcode not automatically creating bridging header?
I imported an Obj-C file into my swift project and Xcode automatically prompted me to create a bridging header file as expected. However, I deleted both the files (moved to trash) to make some changes, but when i try to import the Obj-C file once again, the prompt does... | https://stackoverflow.com/questions/31716413/xcode-not-automatically-creating-bridging-header | ios, objective-c, swift, xcode, bridging-header | 1,438,237,100 |
se_79888130 | stackoverflow | MOBILE_DEVELOPMENT | "Always embed Swift Standard libraries" option is not embedding Swift libraries | "Always embed Swift Standard libraries" option is not embedding Swift libraries
I am building an iOS app on Flutter. Whenever I try to distribute the app, I get a "SwiftSupport folder is missing" error from App Store Connect. "Always embed Swift Standard libraries" is set to yes, and I set it to inherited a... | https://stackoverflow.com/questions/79888130/always-embed-swift-standard-libraries-option-is-not-embedding-swift-libraries | ios, swift, xcode | 1,770,902,058 |
se_58632188 | stackoverflow | MOBILE_DEVELOPMENT | SwiftUI - Add Border to One Edge of an Image | SwiftUI - Add Border to One Edge of an Image
It's a pretty straight-forward question - How does one apply a border effect to only the wanted edges of an Image with SwiftUI?
For example, I only want to apply a border to the top and bottom edges of an image because the image is taking up the entire width of the screen.
... | https://stackoverflow.com/questions/58632188/swiftui-add-border-to-one-edge-of-an-image | swift, image, uiimage, swiftui | 1,572,462,488 |
se_79886897 | stackoverflow | MOBILE_DEVELOPMENT | iOS 26, using Swift, how can I group multiple Liquid Glass buttons into a single pill view? | iOS 26, using Swift, how can I group multiple Liquid Glass buttons into a single pill view?
In iOS 26, how can I group multiple Liquid Glass buttons into a single pill view instead of separate buttons that my code currently does.
Note that I need to use UIKit, not SwiftUI.
Below code:
import UIKit
import SnapKit
clas... | https://stackoverflow.com/questions/79886897/ios-26-using-swift-how-can-i-group-multiple-liquid-glass-buttons-into-a-single | ios, swift, uikit, ios26, liquid-glass | 1,770,749,837 |
se_79330263 | stackoverflow | MOBILE_DEVELOPMENT | convert number to words call tafqit in arabic | convert number to words call tafqit in arabic
I want to create a swift application that converts, in Arabic, numbers to words. For example, as in https://tafqeet.com
with currency name
Example: 100.5 would be " مائة دولار أمريكي و خمسون سنت لا غير", which would translate to "One hundred US Dollars and Fifty Cents"
I a... | https://stackoverflow.com/questions/79330263/convert-number-to-words-call-tafqit-in-arabic | ios, swift | 1,736,056,363 |
se_59279585 | stackoverflow | MOBILE_DEVELOPMENT | use auto layout to space objects evenly apart | use auto layout to space objects evenly apart
My code below is trying to be based of the photo below. PicLocate should take up 60 percent height of the view. Pic[0] and Pic1 should take up 10 percent height and should be have even width.All of the objects should be spaced of 10 - 15 gap between the views. Mainly it sh... | https://stackoverflow.com/questions/59279585/use-auto-layout-to-space-objects-evenly-apart | swift, autolayout, equality, nslayoutconstraint | 1,576,043,478 |
se_79884767 | stackoverflow | MOBILE_DEVELOPMENT | Swift Vapor + Railway private networking DNS fails — getent exits 2 despite reachable IPv6 DNS | Swift Vapor + Railway private networking DNS fails — getent exits 2 despite reachable IPv6 DNS
I'm stuck with Railway's private networking and would appreciate any help.
I'm running a Swift/Vapor app on Railway with PostGIS + Redis. Public URLs work fine, but private networking (*.railway.internal) never resolves.
... | https://stackoverflow.com/questions/79884767/swift-vapor-railway-private-networking-dns-fails-getent-exits-2-despite-reac | swift, vapor, railway | 1,770,449,967 |
se_79877797 | stackoverflow | MOBILE_DEVELOPMENT | Liquid glass segmented control freezes when dragging handle to a disabled segment | Liquid glass segmented control freezes when dragging handle to a disabled segment
Setup:
I have a segment view with 3 segments, and the last one (at index 2) is disabled.
Issue:
When I drag the liquid glass handle of the segment view from what was previously selected to the disabled segment, the liquid glass handle fr... | https://stackoverflow.com/questions/79877797/liquid-glass-segmented-control-freezes-when-dragging-handle-to-a-disabled-segmen | ios, swift, uikit, uisegmentedcontrol, liquid-glass | 1,769,592,958 |
se_79887578 | stackoverflow | MOBILE_DEVELOPMENT | Profile mismatch error : Xcode 26 :No profile can be merged | Profile mismatch error : Xcode 26 :No profile can be merged
I am getting the issue while generating the coverage . I have tried it over Xcode 16 , Xcode 26 but still issue . Out of 10 , only 1-2 time it generates coverage on Xcode 16.4 only .
Error:
raw profile version mismatch: Profile uses raw profile format versio... | https://stackoverflow.com/questions/79887578/profile-mismatch-error-xcode-26-no-profile-can-be-merged | ios, swift, code-coverage, xcode26 | 1,770,828,937 |
se_79887484 | stackoverflow | MOBILE_DEVELOPMENT | Xcode show full file on debug | Xcode show full file on debug
Whilst debugging in Xcode 26+ if you click on the stack, it only shows the selected function, I'd like it to show the whole file like it used to do. Ok, you can click on expand file, but it's an annoying extra step which I can't see the point of - the stack is still visible in the LHS, a... | https://stackoverflow.com/questions/79887484/xcode-show-full-file-on-debug | swift, xcode, debugging | 1,770,821,418 |
se_79887441 | stackoverflow | MOBILE_DEVELOPMENT | iOS BLE Advertising Crash: -[CBUUID UTF8String]: unrecognized selector sent to instance when using CBAdvertisementDataServiceDataKey | iOS BLE Advertising Crash: -[CBUUID UTF8String]: unrecognized selector sent to instance when using CBAdvertisementDataServiceDataKey
I’m trying to implement BLE advertising on iOS where the device broadcasts a small employee ID string (4 characters) using a custom Service UUID.
The goal is:
Broadcast a custom Service ... | https://stackoverflow.com/questions/79887441/ios-ble-advertising-crash-cbuuid-utf8string-unrecognized-selector-sent-to-i | ios, swift, react-native | 1,770,818,430 |
se_79887400 | stackoverflow | MOBILE_DEVELOPMENT | Flutter CI/CD pipeline. Build input file cannot be found | Flutter CI/CD pipeline. Build input file cannot be found
I'm trying to build a Flutter CI/CD pipeline but I still get this error no matter what. I tried to modify Pods as well, but the
[12:50:25]: ▸ ::error ::error: Build input file cannot be found: '/Users/runner/Library/Developer/Xcode/DerivedData/Runner-cshkuzpzaap... | https://stackoverflow.com/questions/79887400/flutter-ci-cd-pipeline-build-input-file-cannot-be-found | swift, flutter, xcode, cicd | 1,770,814,857 |
se_79887373 | stackoverflow | MOBILE_DEVELOPMENT | Make local SwiftPM package inherit Xcode project compilation conditions | Make local SwiftPM package inherit Xcode project compilation conditions
I have a local Swift package used only within my app (not distributed publicly) for the sake of modularizing the codebase and sharing code between schemes. I want to create a compilation condition so I can produce a different binary to exclude cod... | https://stackoverflow.com/questions/79887373/make-local-swiftpm-package-inherit-xcode-project-compilation-conditions | swift, xcode, swiftpm | 1,770,812,657 |
se_56485562 | stackoverflow | MOBILE_DEVELOPMENT | Are the #if DEBUG statements really needed for previews in SwiftUI to remove it in a release build? | Are the #if DEBUG statements really needed for previews in SwiftUI to remove it in a release build?
The preprocessor macro's are pretty commonly seen in the SwiftUI official tutorials/videos, e.g.:
#if DEBUG
struct ContentView_Previews : PreviewProvider {
static var previews: some View {
ContentView()
... | https://stackoverflow.com/questions/56485562/are-the-if-debug-statements-really-needed-for-previews-in-swiftui-to-remove-it | swift, c-preprocessor, swiftui | 1,559,858,113 |
se_79885138 | stackoverflow | MOBILE_DEVELOPMENT | How do I populate an NSMenuToolbarItem with Continuity Camera menu items? | How do I populate an NSMenuToolbarItem with Continuity Camera menu items?
In Apple apps like Mail and Notes, some NSMenuToolbarItem menus (e.g. Photo Browser, Media) include Continuity Camera actions under an Import from iPhone or iPad section (typically after a separator).
I am building a macOS AppKit app that uses N... | https://stackoverflow.com/questions/79885138/how-do-i-populate-an-nsmenutoolbaritem-with-continuity-camera-menu-items | swift, cocoa, appkit, nsmenu, continuity | 1,770,514,313 |
se_79887102 | stackoverflow | MOBILE_DEVELOPMENT | iOS 26 SwiftUI Tab Bar selected item background is too large and overlaps other tab items | iOS 26 SwiftUI Tab Bar selected item background is too large and overlaps other tab items
On iOS 26 Tab Bar, the selected item shows a big floating circle that visually collides with the adjacent icons. See below screenshot
TabView(selection: $navController.selectedTab) {
ContactsParentView()
.tabItem... | https://stackoverflow.com/questions/79887102/ios-26-swiftui-tab-bar-selected-item-background-is-too-large-and-overlaps-other | ios, swift, swiftui, uitabbarcontroller, tabbar | 1,770,781,882 |
se_79793891 | stackoverflow | MOBILE_DEVELOPMENT | iOS 26 UISlider's .valueChanged event is always blank and allTouches is always nil, unable to detect end of slider drag | iOS 26 UISlider's .valueChanged event is always blank and allTouches is always nil, unable to detect end of slider drag
I have an old app which had been working fine till iOS 26 came out. In my app, I am using the .valueChanged event of UISlider to get the phase and do different things if it's .began, .moved, or .... | https://stackoverflow.com/questions/79793891/ios-26-uisliders-valuechanged-event-is-always-blank-and-alltouches-is-always-n | ios, swift, uislider, uicontrol, ios26 | 1,760,809,323 |
se_79884905 | stackoverflow | MOBILE_DEVELOPMENT | How to display two-line Suggestion menu with NSTextField | How to display two-line Suggestion menu with NSTextField
I am trying to use the new macOS15 suggestionDelegate but I am struggling with the table layout. How to display two lines so they don't get clipped?
NOTE: It works on macOS26. It behaves like this on macOS15. Another bug is move window by titlebar - tableview s... | https://stackoverflow.com/questions/79884905/how-to-display-two-line-suggestion-menu-with-nstextfield | swift, macos, appkit, nstextfield | 1,770,474,558 |
se_79886575 | stackoverflow | MOBILE_DEVELOPMENT | Dynamic screensaver on macOS | Dynamic screensaver on macOS
Some native macOS screensaver are dynamic, meaning that they have different color schemes during the day.[1]
I understand that dynamic wallpapers work with metadata and the different photos saved under one .heic file (that allows one file to contain multiple images). This github project sh... | https://stackoverflow.com/questions/79886575/dynamic-screensaver-on-macos | swift, xcode, macos, screensaver | 1,770,722,189 |
se_75365554 | stackoverflow | MOBILE_DEVELOPMENT | HealthKit: Calculate heart rate average in a day and length of it | HealthKit: Calculate heart rate average in a day and length of it
Getting familiar with HealthKit and i am trying to find the below by query, but haven't manage to do that yet.
During the same day workout 30 and 60 minutes with moderate heart rate (64%-76%) of max heart rate.
func getAverageHeartRate(forDate date: Dat... | https://stackoverflow.com/questions/75365554/healthkit-calculate-heart-rate-average-in-a-day-and-length-of-it | swift, healthkit | 1,675,710,368 |
se_77552584 | stackoverflow | MOBILE_DEVELOPMENT | Auto Layout Constraint Conflict in SwiftUI When Tapping TextField | Auto Layout Constraint Conflict in SwiftUI When Tapping TextField
I am developing an iOS app using SwiftUI and have encountered an Auto Layout constraint conflict issue that appears when tapping on a TextField within a LoginView. I've tried several troubleshooting steps but haven't been able to resolve it.
Error Messa... | https://stackoverflow.com/questions/77552584/auto-layout-constraint-conflict-in-swiftui-when-tapping-textfield | ios, swift, swiftui, autolayout | 1,701,017,016 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.