-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from rayhannabi/release/0.6.6.beta.2
Release/0.6.6.beta.2
- Loading branch information
Showing
31 changed files
with
430 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// AlertDatePicker.swift | ||
// RNAlertController | ||
// | ||
// Created by Rayhan on 7/10/19. | ||
// Copyright © 2019 Rayhan Nabi. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
/// Action block to perform when a date is selected. | ||
public typealias AlertDatePickerAction = (Date) -> Void | ||
|
||
class AlertDatePicker: UIDatePicker { | ||
|
||
var action: AlertDatePickerAction? | ||
|
||
convenience init(datePickerMode: UIDatePicker.Mode, | ||
selectedDate: Date? = nil) { | ||
self.init(frame: .zero) | ||
self.datePickerMode = datePickerMode | ||
self.date = selectedDate ?? Date() | ||
translatesAutoresizingMaskIntoConstraints = false | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.