Use this tag only for questions directly related to changes in version 4 of Apple's Swift programming language.
In Swift 2, I was able to use dispatch_after to delay an action using grand central dispatch: var dispatchTime: dispatch_…
swift swift4 grand-central-dispatch swift5I have the following simple code written in Swift 3: let str = "Hello, playground" let index = str.index(of: ",")! let newStr = …
swift swift4Briefly, while using Xcode 9 Beta, I have run into the following warning: The use of Swift 3 @objc inference in Swift 4 …
swift swift4 xcode9-betaI have a struct that implements Swift 4’s Codable. Is there a simple built-in way to encode that struct into …
swift swift4 codable