Questions tagged [swift]

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
4 views

How to implement Kotlin class delegate

I have a bunch of experience with iOS swift programming. I have recently begun to start learning kotlin and starting to figure out how it works. However; a big problem that I have run into was class ...
0
votes
0answers
7 views

Hide the Home Indicator in Swift 2.0

I'm looking to hide the Home Indicator and while this is straightforward in Swift doesn't appear to be as easy in SwiftUI. I attempted to use this: How to hide the home indicator with SwiftUI? But ...
0
votes
0answers
4 views

Mapbox: Display multiple styleURLs at the same time on a MGLStyle (create layer using styleURL)

I am trying to add multiple styles to a Mapbox MGLMapView. I understand this is not directly possible as MGLMapView.style only takes a single styleURL so I have been trying to get around this by ...
0
votes
0answers
10 views

Openstack SSL: CERTIFICATE_VERIFY_FAILED

I try to connect to OpenStack via the SwiftClient using Windows Powershell. I receive the following error: Authorization Failure. Authorization failed: SSL exception connecting to http://...:5000/v3/...
0
votes
0answers
9 views

Swift Firebase Storage get all Download URL's of a specific child

Currently, I can fetch the download url by file name via firebase storage reference. I would like to retrieve all download URLS in a specific child without using a file name and only using the last ...
0
votes
0answers
7 views

Get artists top song from current year in MPMediaQuery

I am writing an application to get the top artist that was added to your music library within the current year (this is defined as how many songs in your library are from that artist). I currently ...
0
votes
0answers
6 views

ITMS-90561: Invalid Swift Support - The watchOS application has Swift libraries at both - Xcode 12

I recently tried to submit an update to an app that I have been constantly updating, the last update was done using Xcode 11. This time when I Distributed the App using Xcode 12, everything went ...
0
votes
1answer
30 views

What are the all closures types which return nothing and accept no parameters in Objective-c and Swift?

I am little confusing figure out how the closures in Objective-C. Can anyone tell me how all possibilities can be shown which accept no parameter and return nothing both language ?
0
votes
1answer
26 views

Background Image causing animated popViewController delay/lag

I am getting a delay on animation when popping a view controller. The reason I am getting the delay is because I have a background image. override func viewDidLoad() { super.viewDidLoad() ...
0
votes
1answer
24 views

Swift Combine publisher won't trigger in flatMap after finished event

I'm trying to create a refresh event using CurrentValueSubject while making a network call. So whenever network request fails I can press the button to make the request again, but can't make it work ...
3
votes
1answer
42 views

Function that accepts any type of Measurement in swift

Swift implements the Measurement type which can be used to hold values such as speeds, altitudes, etc. in their desired metric. For example: // Going to explicitly type here so the question is clear ...
0
votes
2answers
23 views

How to eliminate duplicate data after fetching api response and stored in coredata then display in UItableview

I parsed the Api and stored in CoreData but when i display the results in UITableView its displaying the image, name and email twice. How to eliminate the duplicate and display only unique data. I ...
0
votes
2answers
31 views

Xcode: Build fails after pod installation (error: Linker command failed with exit Code 1)

please, can you help me with this ios problem? I use Xcode and swift. I deleted all Derived Data many times. I tryed all solutions for this error from Google. Also uninstall Xcode 10.1 and install 10....
0
votes
0answers
27 views

Redirect the output of Terminal command to TextView

I want to execute a Terminal command in my Application and redirect the Terminal output of this command to a TextView (content_scroller). If I run the Application with Apple+R from within Xcode the ...
-1
votes
0answers
20 views

How can I consolidate multiple API response within a certain time frame by id/time? [closed]

I am accessing an API that when called, returns multiple individual responses instead of just one. For example: Hello, how are you? Rather than returning the desired: Hello, how are you? The ...

15 30 50 per page
1
2 3 4 5
18765