Top "Swift4" questions

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

Swift 4 "This class is not key value coding compliant"

I have a Swift library which is heavily reliant on obj.valueForKey() from NSObject. After migrating to Swift 4 I've found …

ios swift xcode swift4
How to generate an UIImage from AVCapturePhoto with correct orientation?

I am calling AVFoundation's delegate method to handle a photo capture, but I am having difficulty converting the AVCapturePhoto it …

avfoundation ios11 avcapturesession swift4
iOS: Using Swift 4 when targeting iOS 9

Swift 4 is adding some really cool features, like strongly typed keypaths and JSON encoding/decoding using Codable. I would like …

ios swift swift4
How to convert a date string with optional fractional seconds using Codable in Swift4

I am replacing my old JSON parsing code with Swift's Codable and am running into a bit of a snag. …

swift swift4 nsdateformatter codable dateformatter
Swift structures: handling multiple types for a single property

I am using Swift 4 and trying to parse some JSON data which apparently in some cases can have different type …

json swift data-structures swift4 swift-structs
"This app could not be installed at this time" CFBundleIdentifier error

I encountered the "This app could not be installed at this time" error. I have tried several methods such as …

ios swift xcode swift4 cfbundleidentifier
Difference between fileprivate and private extension?

Swift 3.0 I know that fileprivate access level modifier limited using of function/property to source file where it was declared …

swift3 swift4 access-control access-modifiers access-levels
How to write a Swift 4 encoded JSON to a file?

How do you write a JSON object encoded via Swift 4 Codable protocol to a file? Before Swift 4 I used JSONSerialization.…

json swift serialization swift4 codable
How to properly use selectors in swift 4

I have read many tutorials and even the official Apple documentation and must not understand what is wrong with this …

ios swift uiview uidatepicker swift4
HMAC SHA256 in Swift 4

I have a string and a key, which i want to generate an HMAC SHA256 from it. Although i'm using 2 …

swift cryptography swift4 hmac cryptoswift