Skip to content

A lightweight and pure Swift implemented library for easy to use translucent HUD for iOS with indicators and/or labels.

License

Notifications You must be signed in to change notification settings

spirit-jsb/SBProgressHUD

Repository files navigation

SBProgressHUD

视图结构

SBBackgroundContainerView (Background View)
        │
        SBBackgroundContainerView (Bezel View)
                  │ ┌───────────────┐
                  ├─┤Top Spacer View│    ┌─Activity Indicator
                  │ └───────────────┘    │
                  │                      ├─Linear Progress
                  ├──Indicator───────────┤
                  │                      ├─Doughnut Progress
                  ├──Title Label         │
                  │                      ├─Pie Progress
                  ├──Details Label       │
                  │                      ├─Text Label
                  │ ┌──────────────────┐ │
                  └─┤Bottom Spacer View│ └─Custom View
                    └──────────────────┘

API

Property

  • delegate
  • completion
  • style
  • animationType
  • progress
  • progressObject
  • color
  • backgroundViewColor
  • bezelViewColor
  • bezelViewBlurEffectStyle
  • titleText
  • titleFont
  • titleTextColor
  • titleAttributedText
  • detailsText
  • detailsFont
  • detailsTextColor
  • detailsAttributedText
  • offset
  • margin
  • minimumSize
  • contentMargin
  • gracePeriod
  • minimumDisplayingTime*
  • removeFromSuperviewWhenStopped
  • enabledMotionEffects
  • customView

Method

  • init()
  • showProgressHUD(onView:animated:)
  • hideProgressHUD(fromView:animated:)
  • getProgressHUD(fromView:)
  • showProgressHUD(animated:)
  • hideProgressHUD(animated:)
  • delayHideProgressHUD(_:animated:)

限制条件

  • iOS 11.0+
  • Swift 5.0+

安装

Cocoapods

pod 'SBProgressHUD-Spirit', '~> 1.0'

Swift Package Manager

https://github.com/spirit-jsb/SBProgressHUD.git

作者

spirit-jsb, [email protected]

许可文件

SBProgressHUD 可在 MIT 许可下使用,更多详情请参阅许可文件

About

A lightweight and pure Swift implemented library for easy to use translucent HUD for iOS with indicators and/or labels.

Resources

License

Stars

Watchers

Forks

Packages

No packages published