Skip to content

JiahaoZhu11/JZStatusBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JZStatusBar

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Minimum iOS Target: 9.0

Installation

JZStatusBar is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'JZStatusBar'

Usage

JZStatusBar can be laid out via both the frame based layout and auto layout. It is can also be used in .xib, you can just simply place a UIView and change its class to JZStatusBar.

/* It is not necessary to be initialized with a frame */
let statusBar = JZStatusBar(/*frame: <any CGRect>*/)
view.addSubview(statusBar)

If you want to use JZStatusBar in .xib, uncomment line 13 to enable the @IBDesignable attribute, but you might need to add the following code to your podfile to work around the "Image Not Found" error:

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings['LD_RUNPATH_SEARCH_PATHS'] = [
      '$(FRAMEWORK_SEARCH_PATHS)'
    ]
  end
end

You can also check out issue #5334 for any updates on this problem.

Author

朱嘉皓, jiahao_zhu98@outlook.com

License

JZStatusBar is available under the MIT license. See the LICENSE file for more info.

About

A simple customized status bar.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors