-
-
Save siberianisaev/4fa28cb830d51d4b5803 to your computer and use it in GitHub Desktop.
Thank you so much, really helped me out!
Thanks!
To make it works with Xcode7 + swift 2.0 replace line 16 for this one:
objc_setAssociatedObject(self, &AssociatedObjectHandle, newValue, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN_NONATOMIC)
Thanks siberianisaev and Degt, I got error when using 7.3 with 2.2 but all is good now thanks
Thank you
where should call sizeThatFits method ?
thanks a ton for this!
@avaDeveloper, it's called internally by the navBar, you don't explicitly call it.
when i use this my title view and buttons are off center closer to the bottom
@felixdkatt you should be able to transform the view within sizeThatFits()
to resolve this in iOS 10 and below:
self.transform = CGAffineTransformMakeTranslation(0, -(heightDelta));
But this hack appears to be broken in the iOS 11 beta and it doesn't look likely that it will be fixed according to this thread.
Please update it for the latest Swift.
Thanks, here is its swift 3 version
What is the usage for this? Where should I put the height?
what is the usage for this?
Dosen't work with iOS 13.
Swift version of https://gist.github.com/maciekish/c2c903d9b7e7b583b4b2