Skip to content

Instantly share code, notes, and snippets.

@mkll
Forked from calt/Tabbar.Swift
Created April 4, 2019 12:59
Show Gist options
  • Save mkll/da9aa60c8a475ea34cbbb76a1cb41821 to your computer and use it in GitHub Desktop.
Save mkll/da9aa60c8a475ea34cbbb76a1cb41821 to your computer and use it in GitHub Desktop.
UITabBar with custom height in Swift
extension UITabBar {
override public func sizeThatFits(size: CGSize) -> CGSize {
super.sizeThatFits(size)
var sizeThatFits = super.sizeThatFits(size)
sizeThatFits.height = 71
return sizeThatFits
}
}
@mkll
Copy link
Author

mkll commented Apr 4, 2019

See comments under original gist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment