Skip to content

Commit

Permalink
Fixed Swift 3 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rmuhamedgaliev committed Sep 20, 2016
1 parent 0aa3f58 commit 40ca43a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/AlertBuilder.swift
Expand Up @@ -45,12 +45,12 @@ public class AlertBuilder {
return self
}

public func addAction(title: String = "", style: UIAlertActionStyle = .default, handler: ((UIAlertAction!) -> Void) = { _ in }) -> Self {
public func addAction(title: String = "", style: UIAlertActionStyle = .default, handler: @escaping ((UIAlertAction!) -> Void) = { _ in }) -> Self {
alertController.addAction(UIAlertAction(title: title, style: style, handler: handler))
return self
}

public func addTextFieldHandler(_ handler: ((UITextField!) -> Void) = { _ in }) -> Self {
public func addTextFieldHandler(_ handler: @escaping ((UITextField!) -> Void) = { _ in }) -> Self {
alertController.addTextField(configurationHandler: handler)
return self
}
Expand Down

0 comments on commit 40ca43a

Please sign in to comment.