Skip to content

Commit

Permalink
Merge pull request #88 from rayhannabi/release/0.6.8
Browse files Browse the repository at this point in the history
Release/0.6.8
  • Loading branch information
rayhannabi committed Nov 16, 2019
2 parents 7971f70 + 60df34f commit 42d74c8
Show file tree
Hide file tree
Showing 46 changed files with 860 additions and 261 deletions.
2 changes: 1 addition & 1 deletion RNAlertController.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Pod::Spec.new do |spec|

spec.name = "RNAlertController"
spec.version = "0.6.7"
spec.version = "0.6.8"
spec.summary = "Custom Alert Framework for iOS"

spec.description = <<-DESC
Expand Down
68 changes: 52 additions & 16 deletions RNAlertController.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
objects = {

/* Begin PBXBuildFile section */
E82A05362366F50B00DF9E74 /* AlertActionWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = E82A05352366F50B00DF9E74 /* AlertActionWrapper.swift */; };
E82A05382366F57900DF9E74 /* AlertButtonType.swift in Sources */ = {isa = PBXBuildFile; fileRef = E82A05372366F57900DF9E74 /* AlertButtonType.swift */; };
E82A053A2366F5AD00DF9E74 /* AlertLabelType.swift in Sources */ = {isa = PBXBuildFile; fileRef = E82A05392366F5AD00DF9E74 /* AlertLabelType.swift */; };
E82A053C2366F5E900DF9E74 /* AlertPickerRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = E82A053B2366F5E900DF9E74 /* AlertPickerRow.swift */; };
E82A053E2366F62A00DF9E74 /* AlertURL.swift in Sources */ = {isa = PBXBuildFile; fileRef = E82A053D2366F62A00DF9E74 /* AlertURL.swift */; };
E82A05402366F68F00DF9E74 /* Typealiases.swift in Sources */ = {isa = PBXBuildFile; fileRef = E82A053F2366F68F00DF9E74 /* Typealiases.swift */; };
E8508678231E5F2100F0D6B3 /* RNAlertControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8508677231E5F2100F0D6B3 /* RNAlertControllerTests.swift */; };
E850867A231E5F2100F0D6B3 /* RNAlertController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E8ECFACB22772ED000D4BA3F /* RNAlertController.framework */; };
E85086BB231E649800F0D6B3 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E85086B6231E649700F0D6B3 /* AppDelegate.swift */; };
Expand All @@ -21,6 +27,7 @@
E85086C7231E670200F0D6B3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E85086B7231E649700F0D6B3 /* Assets.xcassets */; };
E85EC3DE2293F6FA00C7B417 /* AlertURLButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = E85EC3DD2293F6FA00C7B417 /* AlertURLButton.swift */; };
E8722543234B14E10054A937 /* AlertDatePicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8722542234B14E10054A937 /* AlertDatePicker.swift */; };
E88841062366F90E00CFF2AA /* AlertBannerPosition.swift in Sources */ = {isa = PBXBuildFile; fileRef = E88841052366F90E00CFF2AA /* AlertBannerPosition.swift */; };
E8CE528F227B07D200466CAF /* AlertImageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8CE528E227B07D200466CAF /* AlertImageView.swift */; };
E8CE5291227B092400466CAF /* AlertStackView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8CE5290227B092400466CAF /* AlertStackView.swift */; };
E8CE5293227B0FD400466CAF /* AlertContainerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8CE5292227B0FD400466CAF /* AlertContainerView.swift */; };
Expand All @@ -29,11 +36,11 @@
E8ECFAE122772EFC00D4BA3F /* UIButton+Action.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8ECFAD922772EFB00D4BA3F /* UIButton+Action.swift */; };
E8ECFAE222772EFC00D4BA3F /* UIFont+Extra.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8ECFADA22772EFB00D4BA3F /* UIFont+Extra.swift */; };
E8ECFAE322772EFC00D4BA3F /* AlertLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8ECFADB22772EFB00D4BA3F /* AlertLabel.swift */; };
E8ECFAE422772EFC00D4BA3F /* AlertButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8ECFADC22772EFB00D4BA3F /* AlertButton.swift */; };
E8ECFAE422772EFC00D4BA3F /* Button.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8ECFADC22772EFB00D4BA3F /* Button.swift */; };
E8ECFAE622772EFC00D4BA3F /* AlertButtonStackView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8ECFADE22772EFB00D4BA3F /* AlertButtonStackView.swift */; };
E8ECFAE722772EFC00D4BA3F /* RNAlertController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8ECFADF22772EFB00D4BA3F /* RNAlertController.swift */; };
E8F6B2E9233E32E0006A03F4 /* UIView+Appearance.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8F6B2E8233E32E0006A03F4 /* UIView+Appearance.swift */; };
E8FEEE242310409200A155E2 /* AlertActionButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8FEEE232310409200A155E2 /* AlertActionButton.swift */; };
E8FEEE242310409200A155E2 /* AlertButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8FEEE232310409200A155E2 /* AlertButton.swift */; };
E8FEEE2623104A9F00A155E2 /* UIColor+Extra.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8FEEE2523104A9F00A155E2 /* UIColor+Extra.swift */; };
E8FF167F2282B48C00CC8807 /* RNAlertController+API.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8FF167E2282B48C00CC8807 /* RNAlertController+API.swift */; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -77,6 +84,12 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
E82A05352366F50B00DF9E74 /* AlertActionWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertActionWrapper.swift; sourceTree = "<group>"; };
E82A05372366F57900DF9E74 /* AlertButtonType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertButtonType.swift; sourceTree = "<group>"; };
E82A05392366F5AD00DF9E74 /* AlertLabelType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertLabelType.swift; sourceTree = "<group>"; };
E82A053B2366F5E900DF9E74 /* AlertPickerRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertPickerRow.swift; sourceTree = "<group>"; };
E82A053D2366F62A00DF9E74 /* AlertURL.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertURL.swift; sourceTree = "<group>"; };
E82A053F2366F68F00DF9E74 /* Typealiases.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Typealiases.swift; sourceTree = "<group>"; };
E8508675231E5F2100F0D6B3 /* RNAlertControllerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RNAlertControllerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
E8508677231E5F2100F0D6B3 /* RNAlertControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RNAlertControllerTests.swift; sourceTree = "<group>"; };
E8508679231E5F2100F0D6B3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand All @@ -94,6 +107,7 @@
E85086CC231E6BBA00F0D6B3 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E85EC3DD2293F6FA00C7B417 /* AlertURLButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertURLButton.swift; sourceTree = "<group>"; };
E8722542234B14E10054A937 /* AlertDatePicker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertDatePicker.swift; sourceTree = "<group>"; };
E88841052366F90E00CFF2AA /* AlertBannerPosition.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertBannerPosition.swift; sourceTree = "<group>"; };
E8CE528E227B07D200466CAF /* AlertImageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertImageView.swift; sourceTree = "<group>"; };
E8CE5290227B092400466CAF /* AlertStackView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertStackView.swift; sourceTree = "<group>"; };
E8CE5292227B0FD400466CAF /* AlertContainerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertContainerView.swift; sourceTree = "<group>"; };
Expand All @@ -104,11 +118,11 @@
E8ECFAD922772EFB00D4BA3F /* UIButton+Action.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIButton+Action.swift"; sourceTree = "<group>"; };
E8ECFADA22772EFB00D4BA3F /* UIFont+Extra.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIFont+Extra.swift"; sourceTree = "<group>"; };
E8ECFADB22772EFB00D4BA3F /* AlertLabel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AlertLabel.swift; sourceTree = "<group>"; };
E8ECFADC22772EFB00D4BA3F /* AlertButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AlertButton.swift; sourceTree = "<group>"; };
E8ECFADC22772EFB00D4BA3F /* Button.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Button.swift; sourceTree = "<group>"; };
E8ECFADE22772EFB00D4BA3F /* AlertButtonStackView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AlertButtonStackView.swift; sourceTree = "<group>"; };
E8ECFADF22772EFB00D4BA3F /* RNAlertController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RNAlertController.swift; sourceTree = "<group>"; };
E8F6B2E8233E32E0006A03F4 /* UIView+Appearance.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+Appearance.swift"; sourceTree = "<group>"; };
E8FEEE232310409200A155E2 /* AlertActionButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertActionButton.swift; sourceTree = "<group>"; };
E8FEEE232310409200A155E2 /* AlertButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertButton.swift; sourceTree = "<group>"; };
E8FEEE2523104A9F00A155E2 /* UIColor+Extra.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIColor+Extra.swift"; sourceTree = "<group>"; };
E8FF167E2282B48C00CC8807 /* RNAlertController+API.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "RNAlertController+API.swift"; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -154,8 +168,7 @@
E813210D231E7343007BD8F7 /* Views */ = {
isa = PBXGroup;
children = (
E8FEEE232310409200A155E2 /* AlertActionButton.swift */,
E8ECFADC22772EFB00D4BA3F /* AlertButton.swift */,
E8FEEE232310409200A155E2 /* AlertButton.swift */,
E8ECFADE22772EFB00D4BA3F /* AlertButtonStackView.swift */,
E8CE5292227B0FD400466CAF /* AlertContainerView.swift */,
E8722542234B14E10054A937 /* AlertDatePicker.swift */,
Expand All @@ -168,6 +181,21 @@
path = Views;
sourceTree = "<group>";
};
E82A05342366F4E300DF9E74 /* Helpers */ = {
isa = PBXGroup;
children = (
E82A05352366F50B00DF9E74 /* AlertActionWrapper.swift */,
E88841052366F90E00CFF2AA /* AlertBannerPosition.swift */,
E82A05372366F57900DF9E74 /* AlertButtonType.swift */,
E82A05392366F5AD00DF9E74 /* AlertLabelType.swift */,
E82A053B2366F5E900DF9E74 /* AlertPickerRow.swift */,
E82A053D2366F62A00DF9E74 /* AlertURL.swift */,
E8ECFADC22772EFB00D4BA3F /* Button.swift */,
E82A053F2366F68F00DF9E74 /* Typealiases.swift */,
);
path = Helpers;
sourceTree = "<group>";
};
E8508676231E5F2100F0D6B3 /* RNAlertControllerTests */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -255,6 +283,7 @@
E8ECFADF22772EFB00D4BA3F /* RNAlertController.swift */,
E8FF167E2282B48C00CC8807 /* RNAlertController+API.swift */,
E813210C231E7313007BD8F7 /* Extensions */,
E82A05342366F4E300DF9E74 /* Helpers */,
E813210D231E7343007BD8F7 /* Views */,
);
path = Source;
Expand Down Expand Up @@ -427,21 +456,28 @@
buildActionMask = 2147483647;
files = (
E8ECFAE722772EFC00D4BA3F /* RNAlertController.swift in Sources */,
E8ECFAE422772EFC00D4BA3F /* AlertButton.swift in Sources */,
E82A053A2366F5AD00DF9E74 /* AlertLabelType.swift in Sources */,
E8ECFAE422772EFC00D4BA3F /* Button.swift in Sources */,
E82A05362366F50B00DF9E74 /* AlertActionWrapper.swift in Sources */,
E8ECFAE122772EFC00D4BA3F /* UIButton+Action.swift in Sources */,
E82A053C2366F5E900DF9E74 /* AlertPickerRow.swift in Sources */,
E85EC3DE2293F6FA00C7B417 /* AlertURLButton.swift in Sources */,
E8722543234B14E10054A937 /* AlertDatePicker.swift in Sources */,
E88841062366F90E00CFF2AA /* AlertBannerPosition.swift in Sources */,
E8FEEE2623104A9F00A155E2 /* UIColor+Extra.swift in Sources */,
E8CE5293227B0FD400466CAF /* AlertContainerView.swift in Sources */,
E8ECFAE222772EFC00D4BA3F /* UIFont+Extra.swift in Sources */,
E8CE5295227C506000466CAF /* AlertPickerView.swift in Sources */,
E8ECFAE622772EFC00D4BA3F /* AlertButtonStackView.swift in Sources */,
E8FF167F2282B48C00CC8807 /* RNAlertController+API.swift in Sources */,
E82A05382366F57900DF9E74 /* AlertButtonType.swift in Sources */,
E8CE528F227B07D200466CAF /* AlertImageView.swift in Sources */,
E8FEEE242310409200A155E2 /* AlertActionButton.swift in Sources */,
E8FEEE242310409200A155E2 /* AlertButton.swift in Sources */,
E8CE5291227B092400466CAF /* AlertStackView.swift in Sources */,
E82A05402366F68F00DF9E74 /* Typealiases.swift in Sources */,
E8F6B2E9233E32E0006A03F4 /* UIView+Appearance.swift in Sources */,
E8ECFAE322772EFC00D4BA3F /* AlertLabel.swift in Sources */,
E82A053E2366F62A00DF9E74 /* AlertURL.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -533,15 +569,15 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 682;
CURRENT_PROJECT_VERSION = 670;
DEVELOPMENT_TEAM = PCH85ZHVFN;
INFOPLIST_FILE = "$(SRCROOT)/RNAlertControllerExample/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.6.7;
MARKETING_VERSION = 0.6.8;
PRODUCT_BUNDLE_IDENTIFIER = com.rayhan.ios.RNAlertControllerExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -555,15 +591,15 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 682;
CURRENT_PROJECT_VERSION = 670;
DEVELOPMENT_TEAM = PCH85ZHVFN;
INFOPLIST_FILE = "$(SRCROOT)/RNAlertControllerExample/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 12.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.6.7;
MARKETING_VERSION = 0.6.8;
PRODUCT_BUNDLE_IDENTIFIER = com.rayhan.ios.RNAlertControllerExample;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -702,7 +738,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1006;
CURRENT_PROJECT_VERSION = 1010;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = PCH85ZHVFN;
DYLIB_COMPATIBILITY_VERSION = 1;
Expand All @@ -716,7 +752,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.6.7;
MARKETING_VERSION = 0.6.8;
PRODUCT_BUNDLE_IDENTIFIER = com.rayhan.ios.RNAlertController;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -734,7 +770,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1006;
CURRENT_PROJECT_VERSION = 1010;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = PCH85ZHVFN;
DYLIB_COMPATIBILITY_VERSION = 1;
Expand All @@ -748,7 +784,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.6.7;
MARKETING_VERSION = 0.6.8;
PRODUCT_BUNDLE_IDENTIFIER = com.rayhan.ios.RNAlertController;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class OtherViewController: UIViewController {

RNAlertController(title: "Kashmir Valley", message: nil)
.setAttributedTextForMessage(attText)
.setBannerImage(UIImage(named: "crop")!)
.setBannerImage(UIImage(named: "crop")!, position: .beforeBody)
.addOkButton()
.present()
}
Expand Down
15 changes: 0 additions & 15 deletions Source/Extensions/UIButton+Action.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@

import UIKit

@objc class AlertActionWrapper: NSObject {

let alertAction: AlertAction

init(_ action: @escaping AlertAction) {
alertAction = action
super.init()
}

@objc func invoke() {
alertAction()
}

}

extension UIButton {

func addAction(for controlState: UIControl.Event, action: @escaping AlertAction) {
Expand Down
24 changes: 24 additions & 0 deletions Source/Helpers/AlertActionWrapper.swift
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()
}

}
24 changes: 24 additions & 0 deletions Source/Helpers/AlertBannerPosition.swift
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
}
20 changes: 20 additions & 0 deletions Source/Helpers/AlertButtonType.swift
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
}
14 changes: 14 additions & 0 deletions Source/Helpers/AlertLabelType.swift
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
}
24 changes: 24 additions & 0 deletions Source/Helpers/AlertPickerRow.swift
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
}
}
14 changes: 14 additions & 0 deletions Source/Helpers/AlertURL.swift
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?
}
Loading

0 comments on commit 42d74c8

Please sign in to comment.