Skip to content

Commit af1773b

Browse files
committed
FIX : Initialisation methods made public
1 parent 2a0899f commit af1773b

10 files changed

Lines changed: 12 additions & 12 deletions

File tree

CFAlertViewController.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "CFAlertViewController"
19-
s.version = "2.0.1"
19+
s.version = "2.0.2"
2020
s.summary = "CFAlertViewController is a library that helps you display and customise alerts and action sheets on iPad and iPhone."
2121

2222
# This description is used to generate tags and improve search results.
@@ -79,7 +79,7 @@ Pod::Spec.new do |s|
7979
# Supports git, hg, bzr, svn and HTTP.
8080
#
8181

82-
s.source = { :git => "https://github.com/Codigami/CFAlertViewController.git", :tag => "v2.0.1" }
82+
s.source = { :git => "https://github.com/Codigami/CFAlertViewController.git", :tag => "v2.0.2" }
8383

8484

8585
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

CFAlertViewController/CFAlertViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public class CFAlertViewController: UIViewController {
100100

101101

102102
// MARK: - Initialisation Method
103-
convenience init(title: String?,
103+
convenience public init(title: String?,
104104
message: String?,
105105
textAlignment: NSTextAlignment,
106106
preferredStyle: CFAlertControllerStyle,
@@ -115,7 +115,7 @@ public class CFAlertViewController: UIViewController {
115115
didDismissAlertHandler: dismiss)
116116
}
117117

118-
convenience init(title: String?,
118+
convenience public init(title: String?,
119119
message: String?,
120120
textAlignment: NSTextAlignment,
121121
preferredStyle: CFAlertControllerStyle,

CFAlertViewController/Cells/CFAlertActionTableViewCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public class CFAlertActionTableViewCell: UITableViewCell {
169169
basicInitialisation()
170170
}
171171

172-
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
172+
override public init(style: UITableViewCellStyle, reuseIdentifier: String?) {
173173
super.init(style: style, reuseIdentifier: reuseIdentifier)
174174
// Initialization code
175175
basicInitialisation()

CFAlertViewController/Cells/CFAlertTitleSubtitleTableViewCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class CFAlertTitleSubtitleTableViewCell: UITableViewCell {
6363
basicInitialisation()
6464
}
6565

66-
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
66+
override public init(style: UITableViewCellStyle, reuseIdentifier: String?) {
6767
super.init(style: style, reuseIdentifier: reuseIdentifier)
6868
// Initialization code
6969
basicInitialisation()

CFAlertViewController/Models/CFAlertAction.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class CFAlertAction: NSObject, NSCopying {
3838

3939

4040
// MARK: - Initialisation Method
41-
convenience init(title: String?, style: CFAlertActionStyle, alignment: CFAlertActionAlignment, backgroundColor: UIColor?, textColor: UIColor?, handler: CFAlertActionHandlerBlock?) {
41+
convenience public init(title: String?, style: CFAlertActionStyle, alignment: CFAlertActionAlignment, backgroundColor: UIColor?, textColor: UIColor?, handler: CFAlertActionHandlerBlock?) {
4242
self.init()
4343

4444
// Set Properties

CFAlertViewController/Subclass/CFPushButton/CFPushButton.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ open class CFPushButton: UIButton {
7272
basicInitialisation()
7373
}
7474

75-
override init(frame: CGRect) {
75+
override public init(frame: CGRect) {
7676
super.init(frame: frame)
7777
basicInitialisation()
7878
}
7979

80-
func basicInitialisation() {
80+
open func basicInitialisation() {
8181

8282
// Set Default Original Transform
8383
originalTransform = CGAffineTransform.identity

CFAlertViewController/Transitions/CFAlertViewControllerActionSheetTransition.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class CFAlertViewControllerActionSheetTransition: NSObject {
2525

2626

2727
// MARK: - Initialisation Methods
28-
override init() {
28+
override public init() {
2929
super.init()
3030

3131
// Default Transition Type

CFAlertViewController/Transitions/CFAlertViewControllerPopupTransition.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class CFAlertViewControllerPopupTransition: NSObject {
2525

2626

2727
// MARK: - Initialisation Methods
28-
override init() {
28+
override public init() {
2929
super.init()
3030

3131
// Default Transition Type

Demo/CFAlertViewControllerDemo/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>2.0.1</string>
18+
<string>2.0.2</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)