Use this tag only for questions directly related to changes in version 4 of Apple's Swift programming language.
I am trying to use the Lyft API with iOS 11 and Swift 4, and am receiving an error on the second …
swift swift4 xcode9-betalet startingColorOfGradient = UIColor(colorLiteralRed: 255/255, green: 255/255, blue: 255/255, alpha: 1.0).cgColor let endingColorOFGradient = UIColor(colorLiteralRed: 251/255, green: 247/255, blue: 234/255, alpha: 1.0).cgColor let gradient: CAGradientLayer = CAGradientLayer() …
uicolor swift4I'm trying to upgrade mi app to swift 4, but the barcode reader is not working. I have isolated the barcode …
barcode avcapturesession ios11 swift4 xcode9-betaSwift 4 has Codable and it's awesome. But UIImage does not conform to it by default. How can we do that? …
uiimage swift4 codableI have the following code: import Foundation let jsonData = """ [ {"firstname": "Tom", "lastname": "Smith", "age": "28"}, {"firstname": "Bob", "lastname": "Smith"} ] """.data(using: .…
swift swift4 codableIn Xcode 9 and Swift 4 I always get this warning for some IBInspectable properties: @IBDesignable public class CircularIndicator: UIView { // this has …
swift xcode swift4 xcode9-beta