Use this tag only for questions directly related to changes in version 4 of Apple's Swift programming language.
Xcode 9 (iOS 11) showing me an error/warning while registering for Push (remote) notification. Here is error message And here is …
ios swift push-notification swift4 unusernotificationcenterAfter updating to Xcode 9, I tried to build one of my projects. I use the FacebookLogin pod. I have a …
ios cocoapods facebook-login xcode9-beta swift4I converted my app recently and I keep getting the error "Cannot convert value of type '[String : Any]' …
swift4This is using the example code from the official Swift4 doc let greeting = "Hi there! It's nice to meet you! 👋" …
swift substring swift4Using the latest Xcode 9 beta, I'm seemingly completely unable to access properties on Swift classes. Even odder, I can access …
ios objective-c swift xcode swift4I found this string extension somewhere on SO that allows me to turn html code into an attributed string: func …
ios swift swift4 nsattributedstringkeyI have an extension: public extension UIWindow { override public func topMostController()->UIViewController? { ... } } but for my topMostController I get …
ios swift swift-playground swift4Should the use of class inheritance break the Decodability of class. For example, the following code class Server : Codable { var …
swift swift4 codable