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.
Why would you create a "Implicitly Unwrapped Optional" vs creating just a regular variable or constant? If you
I'm trying to figure this out since last week without going any step further. Ok, so I need to apply some
I am looking for a way to replace characters in a Swift String. Example: "This is my string" I would like to
Playing around with Swift, coming from a Java background, why would you want to choose a Struct instead of a C
I have been working to create a UIAlertView in Swift, but for some reason I can't get the statement right
In Swift, how can I check if an element exists in an array? Xcode does not have any suggestions for contain, i
The Swift Programming Language guide has the following example: class Person { let name: String init
lets say we have a custom class named imageFile and this class contains two properties. class imageFile {
Fellow devs, I am having trouble with AutoLayout in Interface Builder (Xcode 5 / iOS 7). It's very basic
I've gone through the iBook from Apple, and couldn't find any definition of it: Can someone explain
weak references don't seem to work in Swift unless a protocol is declared as @objc, which I don't wa
I'm trying to work out an appropriate singleton model for usage in Swift. So far, I've been able to
How can I detect any text changes in a textField? The delegate method shouldChangeCharactersInRange works for
This crash has been a blocking issue I used the following steps to reproduce the issue: Create a Cocoa Touch
Will Swift-based applications work on OS X 10.9 (Mavericks)/iOS 7 and lower? For example, I have a machine ru