-
-
Save mihailsalari/195c83762a8800f63612bf090aea00db to your computer and use it in GitHub Desktop.
UITabBar with custom height in Swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension UITabBar { | |
| override open func sizeThatFits(size: CGSize) -> CGSize { | |
| super.sizeThatFits(size) | |
| var sizeThatFits = super.sizeThatFits(size) | |
| sizeThatFits.height = 71 | |
| return sizeThatFits | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment