From f31104b59ac81bf98cd7bf2ee0e6a58554abc570 Mon Sep 17 00:00:00 2001 From: Eugene Mozharovsky Date: Tue, 17 Jan 2017 20:16:19 +0300 Subject: [PATCH] [Pod release] Trying to remove status bar config --- ATHKit.podspec | 2 +- Source/ATHImagePickerCaptureViewController.swift | 6 ++++-- Source/ATHImagePickerController.swift | 2 +- Source/ATHImagePickerSelectionViewController.swift | 6 ++++-- Source/ATHImagePickerTabBarController.swift | 6 ++++-- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/ATHKit.podspec b/ATHKit.podspec index 437c844..d3f15dd 100644 --- a/ATHKit.podspec +++ b/ATHKit.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "ATHKit" -s.version = "0.0.9.1" +s.version = "0.0.9.2" s.summary = "ATHKit is a collection of customizable UI components such as ImagePickerController and more." s.homepage = "https://github.com/Athlee/ATHKit" s.license = { :type => "MIT", :file => "LICENSE" } diff --git a/Source/ATHImagePickerCaptureViewController.swift b/Source/ATHImagePickerCaptureViewController.swift index f5ea6aa..23c085a 100644 --- a/Source/ATHImagePickerCaptureViewController.swift +++ b/Source/ATHImagePickerCaptureViewController.swift @@ -105,13 +105,15 @@ final public class ATHImagePickerCaptureViewController: UIViewController, PhotoC fileprivate var isStatusBarHidden: Bool = false { didSet { - updateStatusBar(with: ATHImagePickerController.statusBarConfig) + //updateStatusBar(with: ATHImagePickerController.statusBarConfig) + updateStatusBar(with: ATHImagePickerStatusBarConfig()) } } fileprivate var statusBarAnimation: UIStatusBarAnimation = .none { didSet { - updateStatusBar(with: ATHImagePickerController.statusBarConfig) + //updateStatusBar(with: ATHImagePickerController.statusBarConfig) + updateStatusBar(with: ATHImagePickerStatusBarConfig()) } } diff --git a/Source/ATHImagePickerController.swift b/Source/ATHImagePickerController.swift index 97b9c05..8d261e1 100644 --- a/Source/ATHImagePickerController.swift +++ b/Source/ATHImagePickerController.swift @@ -151,7 +151,7 @@ open class ATHImagePickerController: UINavigationController, ATHImagePickerCommi open var sourceType: ATHImagePickerSourceType = [.camera] open weak var pickerDelegate: ATHImagePickerControllerDelegate? - open static var statusBarConfig = ATHImagePickerStatusBarConfig() + //open static var statusBarConfig = ATHImagePickerStatusBarConfig() // MARK: - Life cycle diff --git a/Source/ATHImagePickerSelectionViewController.swift b/Source/ATHImagePickerSelectionViewController.swift index 8a6f78d..26ffe54 100644 --- a/Source/ATHImagePickerSelectionViewController.swift +++ b/Source/ATHImagePickerSelectionViewController.swift @@ -80,13 +80,15 @@ open class ATHImagePickerSelectionViewController: UIViewController, SelectionCon fileprivate var isStatusBarHidden: Bool = false { didSet { - updateStatusBar(with: ATHImagePickerController.statusBarConfig) + //updateStatusBar(with: ATHImagePickerController.statusBarConfig) + updateStatusBar(with: ATHImagePickerStatusBarConfig()) } } fileprivate var statusBarAnimation: UIStatusBarAnimation = .none { didSet { - updateStatusBar(with: ATHImagePickerController.statusBarConfig) + //updateStatusBar(with: ATHImagePickerController.statusBarConfig) + updateStatusBar(with: ATHImagePickerStatusBarConfig()) } } diff --git a/Source/ATHImagePickerTabBarController.swift b/Source/ATHImagePickerTabBarController.swift index 3e328a4..e4b7cfa 100644 --- a/Source/ATHImagePickerTabBarController.swift +++ b/Source/ATHImagePickerTabBarController.swift @@ -54,13 +54,15 @@ open class ATHImagePickerTabBarController: PageTabBarController, StatusBarUpdata fileprivate var isStatusBarHidden: Bool = false { didSet { - updateStatusBar(with: ATHImagePickerController.statusBarConfig) + //updateStatusBar(with: ATHImagePickerController.statusBarConfig) + updateStatusBar(with: ATHImagePickerStatusBarConfig()) } } fileprivate var statusBarAnimation: UIStatusBarAnimation = .none { didSet { - updateStatusBar(with: ATHImagePickerController.statusBarConfig) + //updateStatusBar(with: ATHImagePickerController.statusBarConfig) + updateStatusBar(with: ATHImagePickerStatusBarConfig()) } }