SkillAgentSearch skills...

SSSwiftUILoader

A customisable, simple and elegant loader in SwiftUI.

Install / Use

/learn @SimformSolutionsPvtLtd/SSSwiftUILoader
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SSSwiftUILoader

Version License Platform

Alt text

Example

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

Requirements

  • iOS 13.0+
  • Xcode 11+

Installation

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

pod 'SSSwiftUILoader'

Usage example

  • Import framework

      import SSSwiftUILoader
    
  • To start the loader

    • It has default settings but you can also use custon setting if you want.

      SSLoader.shared.startloader("SSLoader...", config: .defaultSettings)
      
    • For custom configuration below is the demo, you just need to confirm the LoaderConfiguration protocol as shown below.

       struct CustomConfig: LoaderConfiguration {
        var loaderTextColor: Color = .blue
        var loaderBackgroundColor: Color = .red
        var loaderCornerRadius: CGFloat =  10.0
        var loaderWindowColor = UIColor(red: 0.96, green: 0.96, blue: 0.96, alpha: 0.5)
        var activityIndicatorColor: UIColor = .blue
        var activityIndicatorStyle: UIActivityIndicatorView.Style = .large 
       }
      
       SSLoader.shared.startloader(config: .customSettings(config: CustomConfig()))
      
  • To stop the loader

       SSLoader.shared.stopLoader()
    

Author

simformsolutions.com

License

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

View on GitHub
GitHub Stars15
CategoryDevelopment
Updated2y ago
Forks0

Languages

Swift

Security Score

80/100

Audited on Sep 30, 2023

No findings