Top "Swift3" questions

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

Type of expression is ambiguous without more context Swift

I am getting a 'Type of expression is ambiguous without more context ' on this part of code from a …

swift swift3
How to pass data using NotificationCenter in swift 3.0 and NSNotificationCenter in swift 2.0?

I'm implementing socket.io in my swift ios app. Currently on several panels I'm listening to the server and wait …

ios swift swift3 nsnotificationcenter nsnotifications
NotificationCenter issue on Swift 3

I'm learning Swift 3 and I'm trying to using NSNotificationCenter. Here is my code: func savePost(){ let postData = NSKeyedArchiver.archivedData(withRootObject: _…

ios swift3 notificationcenter
how to open an URL in Swift3

openURL has been deprecated in Swift3. Can anyone provide some examples of how the replacement openURL:options:completionHandler: works when …

ios swift swift3
How can I switch views programmatically in a view controller? (Xcode, iPhone)

Have been struggling with this for a while, and can never seem to get a direct answer. Any help is …

swift uiviewcontroller swift3 storyboard
Convert NSDate to String in iOS Swift

I am trying to convert a NSDate to a String and then Change Format. But when I pass NSDate to …

ios swift swift3 nsdateformatter
Swift 3 URLSession.shared() Ambiguous reference to member 'dataTask(with:completionHandler:) error (bug)

Hello I have working json parsing code for swift2.2 but when i use it for Swift 3.0 gives me that error …

ios json swift3
Waiting until the task finishes

How could I make my code wait until the task in DispatchQueue finishes? Does it need any CompletionHandler or something? …

swift multithreading asynchronous swift3 grand-central-dispatch
What is the 'open' keyword in Swift?

The ObjectiveC.swift file from the standard library contains the following few lines of code around line 228: extension NSObject : Equatable, …

swift swift3 syntax declaration modifier
Registering for Push Notifications in Xcode 8/Swift 3.0?

I'm trying to get my app working in Xcode 8.0, and am running into an error. I know this code worked …

ios push-notification swift3 ios10 unusernotificationcenter