Skip to content

Instantly share code, notes, and snippets.

View bawn's full-sized avatar
💭
I may be slow to respond.

Bawn bawn

💭
I may be slow to respond.
View GitHub Profile
@bawn
bawn / HQTabBar
Created October 31, 2018 09:35
修复 iOS 12.1 上 UITabBar 里面的 items 偏移问题
import UIKit
class HQTabBar: UITabBar {
var itemFrames = [CGRect]()
var tabBarItems = [UIView]()
override func layoutSubviews() {
super.layoutSubviews()