This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class Spinner { | |
fileprivate static var activityIndicator: UIActivityIndicatorView? | |
fileprivate static var style: UIActivityIndicatorViewStyle = .whiteLarge | |
fileprivate static var baseBackColor = UIColor(white: 0, alpha: 0.6) | |
fileprivate static var baseColor = UIColor.white | |
/** | |
Add spinner to `UIView` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Spinner.swift | |
// | |
// Created by Michał Majchrzycki on 28.03.2018. | |
// Copyright © 2018 Prograils.com. All rights reserved. | |
// Check whole tutorial at: https://prograils.com/posts/reusable-activity-indicator-with-swift | |
import UIKit | |
open class Spinner { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<<APP>> change this variables |