aheze/Setting

compile error in SettingGroup file, line 91

Closed this issue · 6 comments

The error information is : Initializer for conditional binding must have Optional type, not 'Color'

backgroundColor is not optional type

I'm getting this too @codinggooner. Why did you close the issue? Have I missed something obvious?

the same problem..

aheze commented

I might have messed up, give me a bit

@aheze I've quashed it by removing the if let here:

if let backgroundColor {
    backgroundColor
}

and just having backgroundColor instead. Otherwise I think you should be able to change that var in Setting.swift to: public static var backgroundColor: Color? and then in the init of SettingGroup ?

Same compile error with XCode 14.3. Sad.

aheze commented

The problem is fixed in the latest commit. I need to make a new release though for Swift Package Manager, hang tight