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

Close button in CG rather than using bundled images #211

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

danielrhodes
Copy link

Attaching resource bundles with iOS frameworks is a rather broken process. When you have simple graphics to package with a framework, it is preferable (when practical) to draw them in CoreGraphics rather than bundle them as images. It also reduces the framework footprint.

In this case, after installing from Cocoapods, XCode was giving me a lot of trouble claiming that the bundle did not exist. Instead of bothering to fix this, I just redid the button in CoreGraphics.

* Removes all bundle resources
* Removes NSBundle category
* Changes the podspec to get rid of bundle
* Adds a NYTCloseButton which is a UIButton with an overrided drawRect
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.

1 participant