Guest User

Untitled

a guest
May 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import UIKit
  2.  
  3. public protocol AlamoWaterProtocol {
  4. func didCallHello()
  5. }
  6.  
  7. open class AlamoWater: NSObject {
  8. public static let shared = AlamoWater()
  9.  
  10. public var delegate:AlamoWaterProtocol?
  11.  
  12. open func hello(){
  13. debugPrint("Hello from AlamoWater!")
  14. AlamoWater.shared.delegate?.didCallHello()
  15. }
  16. }
Add Comment
Please, Sign In to add comment