Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import UIKit
- public protocol AlamoWaterProtocol {
- func didCallHello()
- }
- open class AlamoWater: NSObject {
- public static let shared = AlamoWater()
- public var delegate:AlamoWaterProtocol?
- open func hello(){
- debugPrint("Hello from AlamoWater!")
- AlamoWater.shared.delegate?.didCallHello()
- }
- }
Add Comment
Please, Sign In to add comment