Skip to content

Commit

Permalink
Mark overrides with nonobjc
Browse files Browse the repository at this point in the history
These do not need to be exposed to the Objective-C header.
  • Loading branch information
sberrevoets committed Oct 10, 2015
1 parent 1f8d265 commit 1096a6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/AlertController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class AlertController: UIViewController {
private(set) public var actions = [AlertAction]()

/// The alert's preferred action, if one is set. Setting this value to an action that wasn't already added
/// to the array will add it and override its style to `.Preferrded`. Setting this value to `nil` will
/// to the array will add it and override its style to `.Preferred`. Setting this value to `nil` will
/// remove the preferred style from all actions.
@available(iOS 9, *)
public var preferredAction: AlertAction? {
Expand Down Expand Up @@ -188,12 +188,14 @@ public class AlertController: UIViewController {

// MARK: - View Controller Lifecyle

@nonobjc
public override func viewDidLoad() {
super.viewDidLoad()
listenForKeyboardChanges()
configureAlertView()
}

@nonobjc
public override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()

Expand Down

0 comments on commit 1096a6f

Please sign in to comment.