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 just created a new Swift project within Xcode. I am wondering which version of Swift it's using. How
I have an app where the UITableView's separator inset is set to custom values - Right 0, Left 0. This wor
I'm trying to create an NSTimer in Swift but I'm having some trouble. NSTimer(timeInterval: 1, targ
How do you get the length of a String? For example, I have a variable defined like: var test1: String = "Scot
In C/C++/Objective C you can define a macro using compiler preprocessors. Moreover, you can include/exclude so
Is there a function that I can use to iterate over an array and have both index and element, like Python'
I was implementing an algorithm in Swift Beta and noticed that the performance was very poor. After digging de
In Objective C, I can use #pragma mark to mark sections of my code in the symbol navigator. Since this is a C
My application has a dark background, but in iOS 7 the status bar became transparent. So I can't see anyt
In Swift, how does one call Objective-C code? Apple mentioned that they could co-exist in one application, bu
I'm new to iOS and Objective-C and the whole MVC paradigm and I'm stuck with the following: I have a