12345678910111213141516171819202122232425262728293031323334 |
- //
- // ActionSheetCancelButton.swift
- // Sheeeeeeeeet
- //
- // Created by Daniel Saidi on 2017-11-26.
- // Copyright © 2017 Daniel Saidi. All rights reserved.
- //
- /*
-
- Cancel buttons have no special behavior, but can be used in
- sheets where a user applies changes by tapping an OK button.
- The default cancel button value is `nil`.
-
- */
- import UIKit
- open class ActionSheetCancelButton: ActionSheetButton {
-
-
- // MARK: - Initialization
-
- public init(title: String) {
- super.init(title: title, value: nil)
- }
-
-
- // MARK: - Functions
-
- open override func applyAppearance(_ appearance: ActionSheetAppearance) {
- self.appearance = ActionSheetCancelButtonAppearance(copy: appearance.cancelButton)
- }
- }
|