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,
ViewControllerinheriting from this class can be repackaged for modifications offont, color, position;All
ViewControllercan inherit from this class;
Optionally use
UIScrollViewas the parent class for layout;
Handling of
forUndefinedKeyexceptions;
Button title text and image position settings;