Skip to content

Instantly share code, notes, and snippets.

View vnagendra's full-sized avatar

Vasu Nagendra vnagendra

View GitHub Profile
@vnagendra
vnagendra / LoadingButton.swift
Last active August 25, 2022 07:39 — forked from rajohns08/LoadingButton.swift
iOS / Swift - UIButton subclass for showing loading spinner aka activity indicator inside button
import UIKit
class LoadingButton: UIButton {
var originalButtonText: String?
var activityIndicator: UIActivityIndicatorView!
@IBInspectable
let activityIndicatorColor: UIColor = .lightGray