Top "Swift2" questions

Use this tag only for questions directly related to changes in version 2.x of Apple's Swift programming language.

post application/x-www-form-urlencoded Alamofire

I want to use Alamofire to retrieve a bearer token from Web API but I am new to ios and …

ios swift2 alamofire
How do I remove all map annotations in swift 2

I had working code to remove all map annotations with a button, but after my update to xcode 7 I am …

xcode swift mapkit swift2
Implicitly lazy static members in Swift

I just noticed that static members of Swift structs are implicitly lazy. For instance, this will only call the init …

swift static swift2 lazy-loading static-members
Is it possible to satisfy Swift protocol and add defaulted arguments?

If you have protocol like so: protocol Messaging { func sendMessage(message: String) } Is there any way to satisfy it in …

swift swift2
SafariViewController: How to grab OAuth token from URL?

Trying to use Facebook OAuth with the SafariViewController. First I open the authURL with SafariViewController, which if the user is …

swift facebook oauth swift2 sfsafariviewcontroller
Uploading Images from UIImage Picker onto new Firebase (Swift)

I have a UIImagePicker set up within my app that works fine. I would like to upload a profile picture …

ios firebase swift2 uiimagepickercontroller firebase-storage
changing font and its size of a picker in swift

With Objective-C, I used the code shown below to set/change font family and size of a picker: - (UIView *)…

swift swift2 uipickerview picker
Override func error in Swift 2

This code in XCode 6 does not have error but in XCode 7 (Swift 2) this error has occurred : Method does not override …

swift swift2
Size image pin annotation

I put the personal image instead of the traditional red pin. When I open the map to display the pin, …

ios mapkit swift2 xcode7 mkannotation
Converting ErrorType to NSError loses associated objects

In Swift 2.0 NSError conforms to the ErrorType protocol. For a customly defined error, we can specify the associating object(s) …

swift error-handling swift2