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
[IBDesignable] Opt-out designable and inspectable #529
Conversation
I don't really like this. Also it is not clear if, when imported as a static library via CocoaPods, you can reliably inject a preprocessor define ( |
We could define a |
will that be merged? |
@cashmash probably not in this current form; it is problematic especially when used with CocoaPods. I would welcome suggestions here :) |
@jhersh you can create additional podspec version only for this fix "name": "TTTAttributedLabel",
"version": "1.13.NO_DESIGNABLE", pointed on this commit "source": {
"git": "https://github.com/TTTAttributedLabel/TTTAttributedLabel.git",
"commit": "7e62171a114768725dbf99e10cee83f15f3c98e0"
}, also with preprocessor flag "xcconfig": {
"GCC_PREPROCESSOR_DEFINITIONS": "$(inherited) TTT_NO_DESIGNABLE=1"
}, so enduser just need to install version without designable like this pod 'TTTAttributedLabel', '1.13.NO_DESIGNABLE' |
That would require us to maintain two releases in parallel, indefinitely, which is really not sustainable. I don't really like the subspec idea for a similar reason -- it would require everyone to switch. Other suggestions are welcome here. |
@jhersh Only few retrogrades will support IOS 3.1.1 |
One of the hallmark features of this project has been backwards compatibility to iOS 4.3. It's true that won't be maintainable forever but I think we should not be so quick to dismiss it :) |
Ho Ho Ho
@jhersh thoughts ? |
@Fl0p I'm agree with your thoughts. iOS 9 has been already launched by Apple and now its time to update this awesome library for iOS 7 and greater, send all deprecated methods to the hell. Except few companies who're still supporting iOS 3.1. is just too much as there are not enough devices running this version of iOS. @jhersh, you should really mind our comments and do some hallmark changes in this. Where's @mattt, please share your thoughts as well? If one want to support old versions they can definitely fork and commit their own. For that particular reason, we can't miss super awesome features of new iOS. Waiting for a great update on this. |
There is nothing proposed in this change that requires increasing the minimum deployment target or dropping older iOS SDKs. How is that relevant here? The specific item under discussion is a mechanism that allows the developer to enable or disable We are essentially talking about a compile-time switch using one of these mechanisms:
I am leaning towards |
Current coverage is
|
Added subspecs as per |
@jhersh I think that's the least objectionable proposal I've seen. Pretty cool - I haven't seen |
a801739
to
a904d3f
Compare
I've been reconsidering this as of late. This entire mess, and its workaround, applies only to people who (1) use I think it might be simpler and cleaner to instead document this limitation and leave it there. |
Fixes #460, #510, #520.