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

cross-platform improvements #50

Merged
merged 2 commits into from
Aug 18, 2016
Merged

cross-platform improvements #50

merged 2 commits into from
Aug 18, 2016

Conversation

arielelkin
Copy link
Collaborator

  • SVGImageView_iOS.h, SVGImageView_Mac.h and SVGImageView.h are doing what should be the job of just one file, so i merged them into SVGImageView.h
  • The SVGUI(kls) UI##kls is clever, but is really not very readable. I changed it to a more verbose list of #defines (inspired by Nuke, as it'll be easier for users to understand what they are.

@@ -2,8 +2,12 @@

#if TARGET_OS_IPHONE
# import <UIKit/UIKit.h>
# define SVGUI(kls) UI##kls
# define View UIView
Copy link
Member

Choose a reason for hiding this comment

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

If we want to do it this way, @compatibility_alias is more appropriate. Also, we need to use our prefix, we'd be very likely to conflict with a host project otherwise.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Are you ok with PSVG as a prefix?

Copy link
Member

Choose a reason for hiding this comment

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

Sure.

Copy link
Collaborator Author

@arielelkin arielelkin Aug 8, 2016

Choose a reason for hiding this comment

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

added the PSVG prefix as well the @compatibility_alias directive: 4fa4e6c

@fjolnir fjolnir merged commit f7bd814 into v2 Aug 18, 2016
@fjolnir fjolnir deleted the v2-crossplatform-improvements branch August 18, 2016 09:16
barakwei pushed a commit to Lightricks/PocketSVG that referenced this pull request Sep 19, 2019
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