Skip to content

Instantly share code, notes, and snippets.

@durul
Forked from calt/Tabbar.Swift
Created March 5, 2018 19:30
Show Gist options
  • Save durul/368e2942881ca3596a2f2a827cc689fc to your computer and use it in GitHub Desktop.
Save durul/368e2942881ca3596a2f2a827cc689fc 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
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment