Skip to content

Commit 5f08d5f

Browse files
committed
fixed Swift 4.2 issues
1 parent 09c633a commit 5f08d5f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DataSource/SeparatedSection/SeparatorLineCell.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ extension SeparatorLineCell {
121121
if let stlye = viewModel.style {
122122
return stlye.height
123123
} else if viewModel.customView != nil {
124-
return UITableViewAutomaticDimension
124+
return UITableView.automaticDimension
125125
} else {
126126
return 0
127127
}

DataSource/Utilities/UIView+AutoLayout.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ extension UIView {
1717
func animateConstraints(withDuration duration: TimeInterval, delay: TimeInterval = 0.0, animations: () -> Void, completion: ((Bool) -> Void)?) {
1818
self.layoutIfNeeded()
1919
animations()
20-
UIView.animate(withDuration: duration, delay: delay, options: UIViewAnimationOptions(rawValue: 0), animations: { () -> Void in
20+
UIView.animate(withDuration: duration, delay: delay, options: UIView.AnimationOptions(rawValue: 0), animations: { () -> Void in
2121
self.layoutIfNeeded()
2222
}, completion: completion)
2323
}
2424

25-
func animateConstraints(withDuration duration: TimeInterval, delay: TimeInterval = 0.0, options: UIViewAnimationOptions, animations: () -> Void, completion: ((Bool) -> Void)?) {
25+
func animateConstraints(withDuration duration: TimeInterval, delay: TimeInterval = 0.0, options: UIView.AnimationOptions, animations: () -> Void, completion: ((Bool) -> Void)?) {
2626
self.layoutIfNeeded()
2727
animations()
2828
UIView.animate(withDuration: duration, delay: delay, options: options, animations: { () -> Void in

0 commit comments

Comments
 (0)