Skip to content

Instantly share code, notes, and snippets.

@ZaidPathan
Created May 19, 2018 08:59
Show Gist options
  • Save ZaidPathan/9ba54091e5684efb75fa5cf97162a764 to your computer and use it in GitHub Desktop.
Save ZaidPathan/9ba54091e5684efb75fa5cf97162a764 to your computer and use it in GitHub Desktop.
Git
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()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment