AnthonyWhitakerJr / TapList_iOS

Sample mobile conversion of Kroger's ClickList website.
1 stars 1 forks source link

Debug IBDesignable #19

Closed AnthonyWhitakerJr closed 7 years ago

AnthonyWhitakerJr commented 7 years ago

PlaceholderTextView crashes Xcode when set as @IBDesignable. Is this a bug in Xcode or a strange interaction of the code?

Reference: http://nshipster.com/ibinspectable-ibdesignable/

https://gist.github.com/AnthonyWhitakerJr/14b2bf7cd968ead12616b02a5ede8cbf

AnthonyWhitakerJr commented 7 years ago

Font on UITextView is not set on initialization in IB, but is in application. Its absence was causing a crash in PlaceholderLabel. Added a workaround specifically for IB.