Use this tag only for questions directly related to changes in version 4 of Apple's Swift programming language.
We have big enough project which is built up with Swift 2.x and now Apple has just released Swift 4 so …
swift swift2 xcode8 xcode9-beta swift4my project uses both Objective-C and Swift code. When a user logs in, it calls a set of apis for …
swift crash swift4 ios11 xcode9-betaMy application already in app store, yesterday i have updated my Xcode version to 9 and works fine except iPhone x. …
ios autolayout swift4 xcode9 iphone-xIn the past I had no problem creating a UIButton programmatically, but ever since I've been using Xcode 9 and Swift 4, …
uibutton selector swift4 xcode9-beta addtargetI am trying to hide status bar in one of my UIViewControllers (Swift 4). Firstly, I set View controller-based status bar …
ios swift4In swift 3 I could do something like this to make my UIView corners round: import UIKit @IBDesignable class DesignableView: UIView { } …
ios swift uiview swift4 ibdesignablei've just converted my little app but i've found this error: 'substring(from:)' is deprecated: Please use String slicing …
swift substring deprecated swift4