Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for MacOS with AppKit #30

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mattiascibien
Copy link

@mattiascibien mattiascibien commented Oct 28, 2024

Background

When trying to add the package to a multiplatform or MacOS project it is not possibile to compile as it requires UIKit. This PR adds new handlers for handling code on MacOS with AppKit

Breaking Changes

Package does not support iOS 9 anymore but in any case the project only works with iOS 15+ so it should be more correct like this

Checklist

  • Appropriate label has been added to this PR (i.e., Bug, Enhancement, etc.).
  • Documentation has been added to all open, public, and internal scoped methods and properties.
  • Tests have have been added to all new features.
  • Image/GIFs have been added for all UI related changed.

@mattiascibien mattiascibien marked this pull request as draft October 28, 2024 13:24
@rpcarson
Copy link
Collaborator

ready to review when you are done

@mattiascibien mattiascibien marked this pull request as ready for review October 29, 2024 08:13
@mattiascibien
Copy link
Author

Thanks. It is my first swift work so if you find something bad I am here :)

@@ -6,7 +6,7 @@
// Copyright © 2017 Reed Carson. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed as UIKit is not cross platform and FOUNDATION_EXPORT is defined here

@mattiascibien mattiascibien force-pushed the feature/macos branch 2 times, most recently from 1d9aee2 to d735db0 Compare October 29, 2024 12:50
@mattiascibien
Copy link
Author

@rpcarson ready for review. I have added some changes for newer swift versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants