ryanlintott / FrameUp

Reframing SwiftUI Views. A collection of tools to help with layout.
MIT License
196 stars 4 forks source link

macOS Support #2

Closed aehlke closed 1 year ago

aehlke commented 1 year ago

Looks like some of this should work on max but readme says iOS only

ryanlintott commented 1 year ago

Many features may work on macOS but I haven't tested it yet. This is why I say iOS only. If you find macOS issues let me know.

aehlke commented 1 year ago

Got it, thx. I'll start w/ a PR to wrap the files in #if os(iOS) so it can be introduced into a multiplatform project and at least compile

ryanlintott commented 1 year ago

That would be great! Eventually I'd like to test and adjust to support macOS as well.

ryanlintott commented 1 year ago

I've updated the dev branch so it includes #if os(iOS). I still need to test some of the code and update the readme before I can push to main.

ryanlintott commented 1 year ago

macOS support has now been added in 0.5.0! There are a few iOS only elements like AutoRotatingView, TabMenu,WidgetRelativeShape, and SmartScrollView. The first 3 aren't really compatible but SmartScrollView has been excluded as it doesn't seem to work the same on macOS. I might make add macOS support to SmartScrollView in the future but that would be another issue so I'll close this one.

aehlke commented 1 year ago

Thanks very much. The Widget code looks very handy