From 341f97cf9d417b5bab61bfa3963da76276162fce Mon Sep 17 00:00:00 2001 From: Seungyoun Yi Date: Sun, 17 Feb 2019 21:03:57 +0900 Subject: [PATCH] update again --- .swift-version | 2 +- YNExpandableCell.podspec | 2 +- YNExpandableCellDemo/AppDelegate.swift | 2 +- YNExpandableCellDemo/ViewController.swift | 4 ++-- YNExpandableCellDemo/YNExpandableCells.swift | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.swift-version b/.swift-version index bf0d87a..8012ebb 100644 --- a/.swift-version +++ b/.swift-version @@ -1 +1 @@ -4 \ No newline at end of file +4.2 \ No newline at end of file diff --git a/YNExpandableCell.podspec b/YNExpandableCell.podspec index 8c13dfe..51aded6 100644 --- a/YNExpandableCell.podspec +++ b/YNExpandableCell.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'YNExpandableCell' - s.version = '1.2.0' + s.version = '1.2.1' s.summary = 'Easiest way to expand and collapse cell for iOS with Swift 4.2' s.description = <<-DESC diff --git a/YNExpandableCellDemo/AppDelegate.swift b/YNExpandableCellDemo/AppDelegate.swift index 76e7aa0..5546ef7 100644 --- a/YNExpandableCellDemo/AppDelegate.swift +++ b/YNExpandableCellDemo/AppDelegate.swift @@ -13,7 +13,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } diff --git a/YNExpandableCellDemo/ViewController.swift b/YNExpandableCellDemo/ViewController.swift index 34d8397..7a50d05 100644 --- a/YNExpandableCellDemo/ViewController.swift +++ b/YNExpandableCellDemo/ViewController.swift @@ -36,11 +36,11 @@ class ViewController: UIViewController, YNTableViewDelegate { // Dispose of any resources that can be recreated. } - func expandAllButtonClicked() { + @objc func expandAllButtonClicked() { self.ynTableView.expandAll() } - func collapseAllButtonClicked() { + @objc func collapseAllButtonClicked() { self.ynTableView.collapseAll() } diff --git a/YNExpandableCellDemo/YNExpandableCells.swift b/YNExpandableCellDemo/YNExpandableCells.swift index 3ba0519..ad9dff9 100644 --- a/YNExpandableCellDemo/YNExpandableCells.swift +++ b/YNExpandableCellDemo/YNExpandableCells.swift @@ -14,7 +14,7 @@ class YNExpandableCellEx: YNExpandableCell { @IBOutlet var titleLabel: UILabel! - public override init(style: UITableViewCellStyle, reuseIdentifier: String?) { + public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) } @@ -30,7 +30,7 @@ class YNExpandableCellEx: YNExpandableCell { class YNSliderCell: UITableViewCell { static let ID = "YNSliderCell" - public override init(style: UITableViewCellStyle, reuseIdentifier: String?) { + public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) } @@ -49,7 +49,7 @@ class YNSliderCell: UITableViewCell { class YNSegmentCell: UITableViewCell { static let ID = "YNSegmentCell" - public override init(style: UITableViewCellStyle, reuseIdentifier: String?) { + public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) }