TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

ColorPicker doesn't show | Xcode beta 4

Forums > SwiftUI

A while back I started to play around with the new ColorPicker. At this time it was still bugged and wouldn't work. Now with the new beta 4, I read, that ColorPicker would be fixed. But now I found that even when creating the simplest app, the picker can't be opened at all, only fading out the screen a little bit, after clicking on the picker. No crash nothing. Does somebody know whats happening or got similar behaviour?

import SwiftUI

@main
struct colorpickerApp: App {
    @State var color: Color = Color.white

    var body: some Scene {
        WindowGroup {
            ColorPicker("Color", selection: $color)
                .frame(width: 100, height: 100)
        }
    }
}

xcode only shows the following in the consolm at app launch:

2020-08-05 13:47:17.287012+0200 colorpicker[3765:275583] libMobileGestalt MobileGestaltCache.c:38: No persisted cache on this platform`

2      

Getting exactly the same with beta 4 and spent the last hour thinking it was my code.
Googling I found a reddit post saying it was only happening on the Simulator. Guess we'll have to wait for beta 5.

3      

Hacking with Swift is sponsored by RevenueCat.

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.