Kurdtvs-Live-Kurdish-TV-Kur.../Mastodon/Extension/UIBarButtonItem.swift

21 lines
445 B
Swift
Raw Normal View History

2021-02-03 09:01:08 +01:00
//
// UIBarButtonItem.swift
// Mastodon
//
// Created by MainasuK Cirno on 2021/2/3.
//
import UIKit
extension UIBarButtonItem {
static var activityIndicatorBarButtonItem: UIBarButtonItem {
let activityIndicatorView = UIActivityIndicatorView(style: .medium)
let barButtonItem = UIBarButtonItem(customView: activityIndicatorView)
activityIndicatorView.startAnimating()
return barButtonItem
}
}