- July 30, 2025
- Mins Read
An easy way to handle full screen activity indicator.
// Show spinner
LLSpinner.spin()
// Hide spinner
LLSpinner.stop()
// You can modify the background color and the activity indicator style
// To set the default background color
LLSpinner.backgroundColor = UIColor(white: 0, alpha: 0.6)
// and the default activity indicator style
LLSpinner.style = .whiteLarge
// Or
LLSpinner.spin(style: .whiteLarge, backgroundColor: UIColor(white: 0, alpha: 0.6))
// Add a handler that will trigger when the spinner is tapped
LLSpinner.spin() {
LLSpinner.stop()
}
LLSpinner is available through CocoaPods.
To install add the following line to your Podfile:
pod ‘LLSpinner’
Add the following line to your Cartfile:
github “alaphao/LLSpinner”
Download and drop LLSpinner.swift
in your project.
PermissionsSwiftUI displays and handles permissions in SwiftUI. It is largely inspired by SPPermissions. The UI is highly customizable and resembles an Apple style. ...
Introduction PagerTabStripView is the first pager view built in pure SwiftUI. It provides a component to create interactive pager views ...
1. Taking Action When a Property Changes: Property Observers Swift lets you observe and respond to changes in a property’s ...