Skip to content

i-stack/STBaseProject

Repository files navigation

STBaseProject

CI Status Version License Platform

Installation

pod 'STBaseProject'

Basic Configuration

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))
}

How to use

一、STBaseViewController

  1. Implement a customizable navigation bar, ViewController inheriting from this class can be repackaged for modifications of font, color, position;

  2. All ViewController can inherit from this class;

二、STBaseView

Optionally use UIScrollView as the parent class for layout;

三、STBaseModel

Handling of forUndefinedKey exceptions;

四、STBtn

Button title text and image position settings;

五、STDeviceInfo

1、st_isUseVPNConnected()

UIBackgroundModes fetch processing

About

Collect common classes in the development process

Resources

License

Stars

Watchers

Forks

Packages

No packages published