-
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 #88 from rayhannabi/release/0.6.8
Release/0.6.8
- Loading branch information
Showing
46 changed files
with
860 additions
and
261 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// AlertActionWrapper.swift | ||
// RNAlertController | ||
// | ||
// Created by Rayhan on 28/10/19. | ||
// Copyright © 2019 Rayhan Nabi. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
@objc class AlertActionWrapper: NSObject { | ||
|
||
let alertAction: AlertAction | ||
|
||
init(_ action: @escaping AlertAction) { | ||
alertAction = action | ||
super.init() | ||
} | ||
|
||
@objc func invoke() { | ||
alertAction() | ||
} | ||
|
||
} |
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,24 @@ | ||
// | ||
// AlertBannerPosition.swift | ||
// RNAlertController | ||
// | ||
// Created by Rayhan on 28/10/19. | ||
// Copyright © 2019 Rayhan Nabi. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
|
||
/// Describes banner image positions. | ||
@objc public enum AlertBannerPosition: Int { | ||
|
||
/// Banner image is displayed after title and message. | ||
/// | ||
/// - Note: Image contentMode is set to `scaleAspectFit`. | ||
case afterBody | ||
|
||
/// Banner image is displayed before the title. | ||
/// | ||
/// - Note: Image contentMode is set to `scaleAspectFill`. | ||
case beforeBody | ||
} |
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,20 @@ | ||
// | ||
// AlertButtonType.swift | ||
// RNAlertController | ||
// | ||
// Created by Rayhan on 28/10/19. | ||
// Copyright © 2019 Rayhan Nabi. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
/// Describes the appearances of the alert buttons. | ||
@objc public enum AlertButtonType: Int { | ||
|
||
/// Apply the default style to the button. | ||
case `default` = 0 | ||
/// Apply a style that indicates the action cancels the operation and leaves things unchanged. | ||
case cancel | ||
/// Apply a style that indicates the action might change or delete data. | ||
case destructive | ||
} |
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,14 @@ | ||
// | ||
// AlertLabelType.swift | ||
// RNAlertController | ||
// | ||
// Created by Rayhan on 28/10/19. | ||
// Copyright © 2019 Rayhan Nabi. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
enum AlertLabelType { | ||
case title | ||
case message | ||
} |
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,24 @@ | ||
// | ||
// AlertPickerRow.swift | ||
// RNAlertController | ||
// | ||
// Created by Rayhan on 28/10/19. | ||
// Copyright © 2019 Rayhan Nabi. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
/// An object which identifies the row of a picker view. | ||
public class AlertPickerRow: NSObject { | ||
|
||
/// Selected index starting from 0. | ||
public let index: Int | ||
|
||
/// Title for the row. | ||
public let title: String | ||
|
||
init(index: Int, title: String) { | ||
self.index = index | ||
self.title = title | ||
} | ||
} |
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,14 @@ | ||
// | ||
// AlertType.swift | ||
// RNAlertController | ||
// | ||
// Created by Rayhan on 28/10/19. | ||
// Copyright © 2019 Rayhan Nabi. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct AlertURL { | ||
let url : URL? | ||
let text: String? | ||
} |
Oops, something went wrong.