heestand-xyz/PixelKit

Compatibility with Catalina ?

melMass opened this issue · 5 comments

Hi heestand,

Thanks for the fix regarding the swift version, it still won't build, here are the errors, I have linked to the source files:

Screenshot of the errors with permalinks to source files

image

public convenience init(blendMode: BlendMode = .add,

image

image

image

func extract(_ name: String, in text: String) -> Double? {

And this that still tries to compile even with the safeguards (no idea how it's possible, I will thoroughly check my xcode project)

image

Sorry it's very ugly 😅, do you think it will be possible to remediate those issue to be compatible with an older SDK than Big Sur?

Thanks

Thanks for collecting the errors, I can take a look at them in the beginning of next week.

I've now added Swift 5.5 checks in the repo, so now it runs on Xcode 12.2.
The update is in tag 2.0.7. I hope it works with your setup.

Perfect thanks!
I will test it tomorrow

It works, playing with it I ❤️ the idea.
I'm I right to assume that StateObject is interchangeable with ObservedObject?

Awesome! Yes, you can pass PIX objects via @ObservedObject and store them in @StateObject in SwiftUI.