皇冠hg0088代理网址

Questions tagged [swift]

皇冠hg0088代理网址 Swift is a safe, fast, and expressive general-purpose programming language developed by Apple Inc. for its platforms and Linux. Swift is open-source. Use the tag only for questions about language features, or requiring code in Swift. Use the tags [ios], [ipados], [macos], [watch-os], [tvos], [cocoa-touch], and [cocoa] for (language-agnostic) questions about the platforms or frameworks.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Trying to display message from my database url not working on widgetkit swiftui

I am coming to a problem where I am trying to display a message from my url but for some reason I cant get it to work. I only can get it work when I have hard coded in my code below. Can anyone guide ...
0
votes
0answers
4 views

How to export 3D mesh as USDZ using MetalKit?

Is it possible to export 3D mesh as .usdz file format using MetalKit and ModelIO frameworks? Here's a code: import RealityKit import MetalKit import ModelIO let asset = MDLAsset(bufferAllocator: ...
-1
votes
1answer
16 views

Find index of last occurrence of a character from character-set in string

Is there a short way to find the index of the last character in a string that belongs to a given character set? So with a string "abcd123gws" and character set "1234567890", the ...
0
votes
0answers
5 views

LAContext - Touch ID popup dismiss issue after putting app in background

I am facing one strange issue after updating my device to iOS 14.0 where Touch ID popup is still showing after putting iOS application (written in Swift) in background, previously with iOS 13, it was ...
0
votes
0answers
4 views

NSMutableAttributedString click not working in swift Xcode

I coded a program that checks if a certain string is in the text of a uneditable textView in swift. And then using NSMutableAttributedString finds the certain string and changes it so that it is in ...
1
vote
1answer
19 views

Strange behavior when formatting string to number for Swift

The behavior of str1 and str2 that is different. I expected that str2 is 15.4. Why? let str1 = String(format: "%.1f", Double("12.55")!) // 12.6 let str2 = String(format: "%.1f&...
0
votes
0answers
9 views

Why am I getting the error: Cannot convert value of type '[UIImage?]' to expected argument type '[UIImage]'?

I have declared a public variable: var ImagesOnClick: [UIImage?] = [] Then I save the users images to the array with Image.resolve(images: images, completion: { resolvedImages in ...
0
votes
0answers
13 views

How to call a function in a different class in swift

I have a MainCoordinator class extending NSObject and having the following methods: init(presenter: UINavigationController) { self.presenter = presenter } ​func start() { let ...
0
votes
1answer
12 views

Structs depending on JSON data

I am currently working with a financial market API where I can get JSON data as a single stock ticker/quote or in a batch. I am able to decode the JSON data if I know what stock ticker I am trying to ...
0
votes
0answers
8 views

Firebase tracking on iOS not logging tracking events with log: “Cannot log screen event when app is not active”

Firebase has been set up to log a number of events throughout this iOS application and they all log and display correctly in Xcode. Here is an example of the events being correctly logged in Xcode: ...
0
votes
0answers
9 views

How to delete a subscription in CloudKit

I want to delete a specific subscription, but I'm not sure how to obtain the subscription ID. There are a few options to delete a subscription, all of which requires knowing the subscription ID in ...
0
votes
1answer
11 views

How can i change the whereField value of shapshotListener properly in swift?

I need to change the whereField variable value in snapshotListener Query. Even if i am calling the code "listener?.remove" before the change, snapshot according to the previous query ...
0
votes
0answers
8 views

How can I create a custom UI image picker in SwiftUI?

I am trying to create a custom view for selecting images and/or videos using SwiftUi. I have found some great material on how to create custom selection features and how to manipulate that data but I ...
0
votes
0answers
12 views

Set up Bar Code Scanner Database Through Parse Server: Swift

I have a general question. I have built in Xcode a unique QrCode that is generated based off of a user's objectID found in Parse Server. Ultimately, I am trying to figure out how to scan that item ...
0
votes
0answers
4 views

Add CKRecordZone.Capabilities.atomic capabilities to CKRecordZone

I am trying to set up my CKModifyRecordsOperation to be atomic. However it looks like I need to add CKRecordZone.Capabilities.atomic capabilities to my CKRecordZone for this to work. Is there a way to ...

15 30 50 per page
1
2 3 4 5
18560