Top "Swift5" questions

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

How do I write dispatch_after GCD in Swift 3, 4, and 5?

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 swift5
“SimulatorTrampoline.xpc” would like to access the microphone

I recently upgraded to Swift 5, Xcode version 10.2 (10E125), and after fixing a few compile issues on an app in progress, …

xcode microphone swift5
Swift 5.1 Error: [plugin] AddInstanceForFactory: No factory registered for id <CFUUID

App crashes with the following error message 2019-10-12 20:01:34.332334-0700 Awesome App[26368:3535170] [plugin] AddInstanceForFactory: No factory registered for id <…

swift swift5 swift5.1
Swift: 'Hashable.hashValue' is deprecated as a protocol requirement;

I've been facing following issue (it's just a warning) with my iOS project. 'Hashable.hashValue' is deprecated as a protocol …

swift hashable swift5
Convert from Swift 3.x to 5

When I opened my project in Xcode 10.2, I got this message: Unsupported Swift Version …Use Xcode 10.1 to migrate the code …

swift xcode swift5
UIAlertController's actionSheet gives constraint error on iOS 12.2 / 12.3

On iOS 12.2, while using UIAlertController's actionSheet, Xcode gives constraint error. Anyone having this problem? This same code runs on iOS 12.1 …

uialertcontroller swift5
SwiftUI dynamic List with Sections does not Layout correctly

I'm trying to create a simple dynamic list grouped into sections. (SwiftUI iOS13 Xcode11 beta 2) A simple static example would …

list swiftui swift5 xcode11 ios13
Using SecRandomCopyBytes in Swift

I want to generate random bytes using SecRandomCopyBytes in Swift 3.0. Here is how I did it in Swift 2.2 private static …

ios swift swift3 swift5
How do I use TabbedView in SwiftUI?

struct ContentView : View { var body: some View { NavigationView { TabbedView { PasswordGenerator() .tabItemLabel { Image("KeyGlyph") Text("Generator") } PasswordGeneratorSettings() .tabItemLabel { Image("SettingsGlyph") Text("…

ios swift swiftui swift5 ios13
No author information was supplied by the version control system

I just updated my Xcode to version 10.2 (10E125). A moment I want to commit, I get this message: After I …

swift xcode git xcode10 swift5