An advanced Ethereum/EVM mobile wallet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
alpha-wallet-ios/AlphaWallet/Core/Collection+UIView.swift

30 lines
546 B

// Copyright © 2018 Stormbird PTE. LTD.
import UIKit
extension Collection where Element == UIView {
// swiftlint:disable all
var alpha: CGFloat {
set {
for each in self {
each.alpha = newValue
}
}
get {
return 1
}
}
// swiftlint:enable all
func hideAll() {
for each in self {
each.isHidden = true
}
}
func showAll() {
for each in self {
each.isHidden = false
}
}
}