danielsaidi / SystemNotification

SystemNotification is a Swift SDK that helps you mimic the native iOS system notification in SwiftUI.
MIT License
428 stars 14 forks source link

Fails to compile for macOS #3

Closed biocross closed 3 years ago

biocross commented 3 years ago

I just integrated the library as a Swift packing into a macOS project, and it fails to compile since the InsetGroupedListStyle being used in not available in macOS.

Screenshot 2021-06-12 at 2 04 53 AM

I think this needs a platform check :)

danielsaidi commented 3 years ago

Hi! Thanks for the heads up! But that’s just the demo, right? Can you remove it and run?

biocross commented 3 years ago

Adding the swift package using SPM, seems to add the demo code as well. And packages cannot be edited.

Maybe the demo files can be excluded from the package?

danielsaidi commented 3 years ago

I will look into this ASAP!

danielsaidi commented 3 years ago

I misunderstood. This is not in the demo, but in the preview. I'll fix it right away 👍

danielsaidi commented 3 years ago

This is fixed in 0.3.2.