pod 'STBaseProject'
Configure in AppDelegate:
Custom navigation bar height
private func customNavBar() {
var model = STConstantBarHeightModel.init()
model.navNormalHeight = 76
model.navIsSafeHeight = 100
STConstants.shared.st_customNavHeight(model: model)
}
Design drawing baseline dimension configuration
private func configBenchmarkDesign() {
STConstants.shared.st_configBenchmarkDesign(size: CGSize.init(width: 375, height: 812))
}
Implement a customizable navigation bar,
ViewController
inheriting from this class can be repackaged for modifications offont, color, position
;All
ViewController
can inherit from this class;
Optionally use
UIScrollView
as the parent class for layout;
Handling of
forUndefinedKey
exceptions;
Button title text and image position settings;
1、st_isUseVPNConnected()
UIBackgroundModes fetch processing