Skip to content

Commit

Permalink
Update to Swift 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
joemasilotti committed Sep 24, 2018
1 parent 61a6773 commit 544cf84
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Turbolinks.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -410,7 +410,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "com.basecamp.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion Turbolinks/Session.swift
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ extension Session: VisitableDelegate {
public func visitableViewWillAppear(_ visitable: Visitable) {
guard let topmostVisit = self.topmostVisit, let currentVisit = self.currentVisit else { return }

if visitable === topmostVisit.visitable && visitable.visitableViewController.isMovingToParentViewController {
if visitable === topmostVisit.visitable && visitable.visitableViewController.isMovingToParent {
// Back swipe gesture canceled
if topmostVisit.state == .completed {
currentVisit.cancel()
Expand Down
4 changes: 2 additions & 2 deletions Turbolinks/VisitableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ open class VisitableView: UIView {
// MARK: Activity Indicator

open lazy var activityIndicatorView: UIActivityIndicatorView = {
let view = UIActivityIndicatorView(activityIndicatorStyle: .white)
let view = UIActivityIndicatorView(style: .white)
view.translatesAutoresizingMaskIntoConstraints = false
view.color = UIColor.gray
view.hidesWhenStopped = true
Expand All @@ -104,7 +104,7 @@ open class VisitableView: UIView {
open func showActivityIndicator() {
if !isRefreshing {
activityIndicatorView.startAnimating()
bringSubview(toFront: activityIndicatorView)
bringSubviewToFront(activityIndicatorView)
}
}

Expand Down
2 changes: 1 addition & 1 deletion Turbolinks/WebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class WebView: WKWebView {
configuration.userContentController.add(self, name: "turbolinks")

translatesAutoresizingMaskIntoConstraints = false
scrollView.decelerationRate = UIScrollViewDecelerationRateNormal
scrollView.decelerationRate = UIScrollView.DecelerationRate.normal

if #available(iOS 11, *) {
scrollView.contentInsetAdjustmentBehavior = .never
Expand Down

0 comments on commit 544cf84

Please sign in to comment.