Skip to content

Instantly share code, notes, and snippets.

View Onyekachi-152's full-sized avatar

Onyekachi-152 Onyekachi-152

  • 152Tech
  • Lagos State
View GitHub Profile
@calt
calt / Tabbar.Swift
Last active October 10, 2024 07:06
UITabBar with custom height in Swift, does not work for iOS 14 or later.
// Does not work on iOS 14.0 or later, keeping the gist just for reference.
extension UITabBar {
override open func sizeThatFits(size: CGSize) -> CGSize {
super.sizeThatFits(size)
var sizeThatFits = super.sizeThatFits(size)
sizeThatFits.height = 71
return sizeThatFits
}
}