Swift is a general-purpose, open-source programming language developed by Apple Inc. for their platforms and Linux. Use the tag only for questions about language features, or requiring code in Swift. Use the tags [ios], [osx], [watch-os], [tvos], [cocoa-touch], and [cocoa] for (language-agnostic) questions about the platforms or frameworks.
I am trying to use this ios-charts library in NativeScript. This library is written in Swift and not in Object
I would like to keep the border at the bottom part only in UITextField. But I don't know how we can keep
If there are two arrays created in swift like this: var a:[CGFloat] = [1, 2, 3] var b:[CGFloat] = [4, 5, 6]
How do I get a reference to the app delegate in Swift? Ultimately, I want to use the reference to access the
I have been looking all over for this but I can't seem to find it. I know how to dismiss the keyboard us
My Swift program is crashing with EXC_BAD_INSTRUCTION and one of the following similar errors. What does this
How can I get the nth character of a string? I tried bracket([]) accessor with no luck. var string = "Hello,
In Swift 2, I was able to use dispatch_after to delay an action using grand central dispatch: var dispatchTim
I have an IOS app with an Azure back-end, and would like to log certain events, like logins and which versions
I realize the Swift book provided an implementation of a random number generator. Is the best practice to cop
I have an app that sometimes needs its navigation bar to blend in with the content. Does anyone know how to
Can anyone tell me how to round a double value to x number of decimal places in Swift? I have: var totalWor
In WWDC 2014 session 403 Intermediate Swift and transcript, there was the following slide The speaker said
I am trying to find an item index by searching a list. Does anybody know how to do that? I see there is list
Briefly, while using Xcode 9 Beta, I have run into the following warning: The use of Swift 3 @objc inferen