Stevia icon indicating copy to clipboard operation
Stevia copied to clipboard

Height constraint is nil if using xib or storyboard.

Open NikKovIos opened this issue 5 years ago • 1 comments

Hi there))

view.heightConstraint?.constant == 0

is not usable, because it is nil if i set it in storyboard of xib file.

NikKovIos avatar Feb 12 '19 07:02 NikKovIos

Hey @NikKovIos, good to hear from you! I thought this was fixed :/ This reminds me of #90 and the fix was https://github.com/freshOS/Stevia/pull/97/files Can you debug / print the constraints generated by the xib/storyboard file?

PS Sorry for taking so long to reply 🙏 (I've been doing a lot of Kotlin lately, spying on our enemies xD)

s4cha avatar Apr 09 '19 20:04 s4cha