Skip to content

Commit 341f97c

Browse files
committed
update again
1 parent 6d3a62d commit 341f97c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4
1+
4.2

YNExpandableCell.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'YNExpandableCell'
11-
s.version = '1.2.0'
11+
s.version = '1.2.1'
1212
s.summary = 'Easiest way to expand and collapse cell for iOS with Swift 4.2'
1313

1414
s.description = <<-DESC

YNExpandableCellDemo/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1313

1414
var window: UIWindow?
1515

16-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
16+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1717
// Override point for customization after application launch.
1818
return true
1919
}

YNExpandableCellDemo/ViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ class ViewController: UIViewController, YNTableViewDelegate {
3636
// Dispose of any resources that can be recreated.
3737
}
3838

39-
func expandAllButtonClicked() {
39+
@objc func expandAllButtonClicked() {
4040
self.ynTableView.expandAll()
4141
}
4242

43-
func collapseAllButtonClicked() {
43+
@objc func collapseAllButtonClicked() {
4444
self.ynTableView.collapseAll()
4545
}
4646

YNExpandableCellDemo/YNExpandableCells.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class YNExpandableCellEx: YNExpandableCell {
1414

1515
@IBOutlet var titleLabel: UILabel!
1616

17-
public override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
17+
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
1818
super.init(style: style, reuseIdentifier: reuseIdentifier)
1919
}
2020

@@ -30,7 +30,7 @@ class YNExpandableCellEx: YNExpandableCell {
3030
class YNSliderCell: UITableViewCell {
3131
static let ID = "YNSliderCell"
3232

33-
public override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
33+
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
3434
super.init(style: style, reuseIdentifier: reuseIdentifier)
3535

3636
}
@@ -49,7 +49,7 @@ class YNSliderCell: UITableViewCell {
4949
class YNSegmentCell: UITableViewCell {
5050
static let ID = "YNSegmentCell"
5151

52-
public override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
52+
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
5353
super.init(style: style, reuseIdentifier: reuseIdentifier)
5454

5555
}

0 commit comments

Comments
 (0)