@@ -10,7 +10,7 @@ import UIKit
1010
1111
1212@objc ( CFAlertViewController)
13- class CFAlertViewController : UIViewController {
13+ public class CFAlertViewController : UIViewController {
1414
1515 // MARK: - Declarations
1616 public typealias CFAlertViewControllerDismissBlock = ( _ isBackgroundTapped: Bool ) -> ( )
@@ -172,7 +172,7 @@ class CFAlertViewController: UIViewController {
172172 view. addGestureRecognizer ( self . tapGesture)
173173 }
174174
175- override func viewDidLoad( ) {
175+ override public func viewDidLoad( ) {
176176 super. viewDidLoad ( )
177177
178178 // Load Variables
@@ -182,7 +182,7 @@ class CFAlertViewController: UIViewController {
182182 loadDisplayContent ( )
183183 }
184184
185- override func viewWillAppear( _ animated: Bool ) {
185+ override public func viewWillAppear( _ animated: Bool ) {
186186 super. viewWillAppear ( animated)
187187
188188 // Update UI
@@ -385,7 +385,7 @@ class CFAlertViewController: UIViewController {
385385
386386
387387 // MARK: - View Rotation / Size Change Method
388- override func viewWillTransition( to size: CGSize , with coordinator: UIViewControllerTransitionCoordinator ) {
388+ override public func viewWillTransition( to size: CGSize , with coordinator: UIViewControllerTransitionCoordinator ) {
389389 super. viewWillTransition ( to: size, with: coordinator)
390390 // Code here will execute before the rotation begins.
391391 // Equivalent to placing it in the deprecated method -[willRotateToInterfaceOrientation:duration:]
@@ -402,7 +402,7 @@ class CFAlertViewController: UIViewController {
402402
403403
404404 // MARK: - Key Value Observers
405- override func observeValue( forKeyPath keyPath: String ? , of object: Any ? , change: [ NSKeyValueChangeKey : Any ] ? , context: UnsafeMutableRawPointer ? ) {
405+ override public func observeValue( forKeyPath keyPath: String ? , of object: Any ? , change: [ NSKeyValueChangeKey : Any ] ? , context: UnsafeMutableRawPointer ? ) {
406406 if ( keyPath == " contentSize " ) {
407407 // Update Container View Frame Without Animation
408408 updateContainerViewFrame ( withAnimation: false )
@@ -430,11 +430,11 @@ class CFAlertViewController: UIViewController {
430430extension CFAlertViewController : UITableViewDataSource , UITableViewDelegate , CFAlertActionTableViewCellDelegate {
431431
432432 // MARK: - UITableViewDataSource
433- func numberOfSections( in tableView: UITableView ) -> Int {
433+ public func numberOfSections( in tableView: UITableView ) -> Int {
434434 return 2
435435 }
436436
437- func tableView( _ tableView: UITableView , numberOfRowsInSection section: Int ) -> Int {
437+ public func tableView( _ tableView: UITableView , numberOfRowsInSection section: Int ) -> Int {
438438
439439 switch section {
440440
@@ -456,7 +456,7 @@ extension CFAlertViewController: UITableViewDataSource, UITableViewDelegate, CFA
456456 return 0
457457 }
458458
459- func tableView( _ tableView: UITableView , cellForRowAt indexPath: IndexPath ) -> UITableViewCell {
459+ public func tableView( _ tableView: UITableView , cellForRowAt indexPath: IndexPath ) -> UITableViewCell {
460460
461461 var cell : UITableViewCell ?
462462
@@ -509,24 +509,24 @@ extension CFAlertViewController: UITableViewDataSource, UITableViewDelegate, CFA
509509 return cell!
510510 }
511511
512- func tableView( _ tableView: UITableView , estimatedHeightForRowAt indexPath: IndexPath ) -> CGFloat {
512+ public func tableView( _ tableView: UITableView , estimatedHeightForRowAt indexPath: IndexPath ) -> CGFloat {
513513 return UITableViewAutomaticDimension
514514 }
515515
516- func tableView( _ tableView: UITableView , heightForRowAt indexPath: IndexPath ) -> CGFloat {
516+ public func tableView( _ tableView: UITableView , heightForRowAt indexPath: IndexPath ) -> CGFloat {
517517 return UITableViewAutomaticDimension
518518 }
519519
520520
521521 // MARK: UITableViewDelegate
522- func tableView( _ tableView: UITableView , didSelectRowAt indexPath: IndexPath ) {
522+ public func tableView( _ tableView: UITableView , didSelectRowAt indexPath: IndexPath ) {
523523 // Deselect Table Cell
524524 tableView. deselectRow ( at: indexPath, animated: true )
525525 }
526526
527527
528528 // MARK: CFAlertActionTableViewCellDelegate
529- func alertActionCell( _ cell: CFAlertActionTableViewCell , didClickAction action: CFAlertAction ? ) {
529+ public func alertActionCell( _ cell: CFAlertActionTableViewCell , didClickAction action: CFAlertAction ? ) {
530530 // Dimiss Self
531531 dismissAlert ( withAnimation: true , completion: { ( ) -> Void in
532532 // Call Action Handler If Set
@@ -541,7 +541,7 @@ extension CFAlertViewController: UITableViewDataSource, UITableViewDelegate, CFA
541541extension CFAlertViewController : UIViewControllerTransitioningDelegate {
542542
543543 // MARK: - Transitioning Delegate
544- func animationController( forPresented presented: UIViewController , presenting: UIViewController , source: UIViewController ) -> UIViewControllerAnimatedTransitioning ? {
544+ public func animationController( forPresented presented: UIViewController , presenting: UIViewController , source: UIViewController ) -> UIViewControllerAnimatedTransitioning ? {
545545
546546 if ( presented is CFAlertViewController ) {
547547 if preferredStyle == . alert {
@@ -558,7 +558,7 @@ extension CFAlertViewController: UIViewControllerTransitioningDelegate {
558558 return nil
559559 }
560560
561- func animationController( forDismissed dismissed: UIViewController ) -> UIViewControllerAnimatedTransitioning ? {
561+ public func animationController( forDismissed dismissed: UIViewController ) -> UIViewControllerAnimatedTransitioning ? {
562562
563563 if ( dismissed is CFAlertViewController ) {
564564 if self . preferredStyle == . alert {
0 commit comments