Toast-Swift icon indicating copy to clipboard operation
Toast-Swift copied to clipboard

Ambiguos reference makeToast

Open ALAxHxC opened this issue 8 years ago • 0 comments

Ambiguous reference to member 'makeToast(message:)' this all candidates:

func makeToast(message msg: String) { makeToast(message: msg, duration: HRToastDefaultDuration, position: HRToastPositionDefault as AnyObject) }

func makeToast(message msg: String, duration: Double, position: AnyObject) {
    let toast = self.viewForMessage(msg, title: nil, image: nil)
    showToast(toast: toast!, duration: duration, position: position)
}

func makeToast(message msg: String, duration: Double, position: AnyObject, title: String) {
    let toast = self.viewForMessage(msg, title: title, image: nil)
    showToast(toast: toast!, duration: duration, position: position)
}

func makeToast(message msg: String, duration: Double, position: AnyObject, image: UIImage) {
    let toast = self.viewForMessage(msg, title: nil, image: image)
    showToast(toast: toast!, duration: duration, position: position)
}

func makeToast(message msg: String, duration: Double, position: AnyObject, title: String, image: UIImage) {
    let toast = self.viewForMessage(msg, title: title, image: image)
    showToast(toast: toast!, duration: duration, position: position)
}

ALAxHxC avatar Jun 06 '17 19:06 ALAxHxC