Top "Swift3" questions

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

Error: Could not build Objective-C module 'Firebase'

When I compile the application I get an error equal to this: Could not build Objective-C module 'Firebase' This error …

firebase swift3 xcode8 ios10
Update CGRectMake to CGRect in Swift 3 Automatically

Now that CGRectMake , CGPointMake, CGSizeMake, etc. has been removed in Swift 3.0, is there any way to automatically update all initializations …

ios swift swift3 cgrectmake
Closure use of non-escaping parameter may allow it to escape

I have a protocol: enum DataFetchResult { case success(data: Data) case failure } protocol DataServiceType { func fetchData(location: String, completion: (DataFetchResult) …

swift xcode swift3 closures
How set swift 3 UITextField border color?

Hello i have working no error codes for UITextfield border color change but when using it in Swift 3 dont change …

ios swift swift3 uitextfield
Swift 3 Core Data Delete Object

Unfortunately the new Core Data semantics make me crazy. My previous question had a clean code that didn't work because …

ios swift core-data swift3
Difference between DispatchQueue.main.async and DispatchQueue.main.sync

I have been using DispatchQueue.main.async for a long time to perform UI related operations.

 Swift provides both DispatchQueue.…

ios swift multithreading swift3 concurrency
Swift 3.0 Result of call is unused

I am writing in swift 3.0 i have this code which gives me the warning result of call is unused public …

ios swift swift3
Swift3 iOS - How to make UITapGestureRecognizer trigger function

I am trying to add a UITapGesture to a UIButton so it will trigger a function when tapped. I am …

ios swift uigesturerecognizer swift3
Alamofire Swift 3.0 Extra argument in call

I have migrated my project to Swift 3 (and updated Alamofire to latest Swift 3 version with pod 'Alamofire', '~> 4.0' …

alamofire swift3
didReceiveRemoteNotification not called, iOS 10

In iOS 9.3, the didReceiveRemoteNotification method gets called on both of the following occasions. 1) When the push notification is received 2) When …

ios objective-c swift3 apple-push-notifications