Skip to content

Instantly share code, notes, and snippets.

@ronstar
Created December 7, 2020 15:28
Show Gist options
  • Save ronstar/f291a0eb3b66e611ae99398bbad24e09 to your computer and use it in GitHub Desktop.
Save ronstar/f291a0eb3b66e611ae99398bbad24e09 to your computer and use it in GitHub Desktop.
Class with parameters
class ServiceThree: ServiceThreeProtocol {
let serviceOne: ServiceOneProtocol
let paramOne: Bool
let paramTwo: Data
init(serviceOne: ServiceOneProtocol, paramOne: Bool, paramTwo: Data) {
self.serviceOne = serviceOne
self.paramOne = paramOne
self.paramTwo = paramTwo
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment