Skip to content

Commit

Permalink
fixed Swift 4.2 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuchetics committed Sep 18, 2018
1 parent 09c633a commit 5f08d5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DataSource/SeparatedSection/SeparatorLineCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ extension SeparatorLineCell {
if let stlye = viewModel.style {
return stlye.height
} else if viewModel.customView != nil {
return UITableViewAutomaticDimension
return UITableView.automaticDimension
} else {
return 0
}
Expand Down
4 changes: 2 additions & 2 deletions DataSource/Utilities/UIView+AutoLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ extension UIView {
func animateConstraints(withDuration duration: TimeInterval, delay: TimeInterval = 0.0, animations: () -> Void, completion: ((Bool) -> Void)?) {
self.layoutIfNeeded()
animations()
UIView.animate(withDuration: duration, delay: delay, options: UIViewAnimationOptions(rawValue: 0), animations: { () -> Void in
UIView.animate(withDuration: duration, delay: delay, options: UIView.AnimationOptions(rawValue: 0), animations: { () -> Void in
self.layoutIfNeeded()
}, completion: completion)
}

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

0 comments on commit 5f08d5f

Please sign in to comment.