diff --git a/LeadKitAdditions.xcodeproj/project.pbxproj b/LeadKitAdditions.xcodeproj/project.pbxproj index 8651a27..2cca1c9 100644 --- a/LeadKitAdditions.xcodeproj/project.pbxproj +++ b/LeadKitAdditions.xcodeproj/project.pbxproj @@ -736,7 +736,7 @@ PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -760,7 +760,7 @@ PRODUCT_NAME = LeadKitAdditions; PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Release; }; @@ -784,7 +784,7 @@ PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Debug; }; @@ -808,7 +808,7 @@ PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = ""; - SWIFT_VERSION = 4.0; + SWIFT_VERSION = 4.2; }; name = Release; }; diff --git a/Sources/Classes/Cells/PinLayoutTableViewCell.swift b/Sources/Classes/Cells/PinLayoutTableViewCell.swift index 0b9ce7a..a43c20b 100644 --- a/Sources/Classes/Cells/PinLayoutTableViewCell.swift +++ b/Sources/Classes/Cells/PinLayoutTableViewCell.swift @@ -26,7 +26,7 @@ import PinLayout /// Cell that uses PinLayout. Contains methods that should be overriden in subclasses. open class PinLayoutTableViewCell: UITableViewCell, PinLayoutCell { - public override init(style: UITableViewCellStyle, reuseIdentifier: String?) { + public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) initializeCell() diff --git a/Sources/Classes/Cells/SeparatorTableViewCell.swift b/Sources/Classes/Cells/SeparatorTableViewCell.swift index 1f3dfe7..8edd9ee 100644 --- a/Sources/Classes/Cells/SeparatorTableViewCell.swift +++ b/Sources/Classes/Cells/SeparatorTableViewCell.swift @@ -45,14 +45,14 @@ open class SeparatorTableViewCell: PinLayoutTableViewCell { /// Move separator upward in hierarchy public func bringSeparatorsToFront() { - contentView.bringSubview(toFront: topSeparator) - contentView.bringSubview(toFront: bottomSeparator) + contentView.bringSubviewToFront(topSeparator) + contentView.bringSubviewToFront(bottomSeparator) } /// Move separator backward in hierarchy public func sendSeparatorsToBack() { - contentView.sendSubview(toBack: topSeparator) - contentView.sendSubview(toBack: bottomSeparator) + contentView.sendSubviewToBack(topSeparator) + contentView.sendSubviewToBack(bottomSeparator) } // MARK: - PinLayoutTableViewCell diff --git a/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift b/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift index 9a3b536..2c12fc3 100644 --- a/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift +++ b/Sources/Controllers/PassCode/View/BasePassCodeViewController.swift @@ -109,7 +109,7 @@ open class BasePassCodeViewController: UIViewController, ConfigurableController return } - NotificationCenter.default.rx.notification(.UIApplicationWillResignActive) + NotificationCenter.default.rx.notification(UIApplication.willResignActiveNotification) .subscribe(onNext: { [weak self] _ in self?.resetUI() })