diff --git a/CHANGELOG.md b/CHANGELOG.md index b03647d..f9593f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. `LyftSDK` adheres to [Semantic Versioning](http://semver.org/). +## [1.0.7](https://github.com/lyft/Lyft-iOS-sdk/releases/tag/1.0.6) + +- Updated for Swift 4 + ## [1.0.6](https://github.com/lyft/Lyft-iOS-sdk/releases/tag/1.0.6) - Fix deeplinking with parameters diff --git a/Sources/LyftAPI/LyftAPIURLEncoding.swift b/Sources/LyftAPI/LyftAPIURLEncoding.swift index 065b179..6cf1495 100644 --- a/Sources/LyftAPI/LyftAPIURLEncoding.swift +++ b/Sources/LyftAPI/LyftAPIURLEncoding.swift @@ -29,7 +29,8 @@ func lyftURLEncodedInURL(request: URLRequest, parameters: [String: Any]?) -> (UR .flatMap { components(forKey: $0, value: $1) } var urlComponents = URLComponents(url: mutableURLRequest.url!, resolvingAgainstBaseURL: false) - urlComponents?.queryItems = (urlComponents?.queryItems ?? []) + queryItems + var localVariable = urlComponents + urlComponents?.queryItems = (localVariable?.queryItems ?? []) + queryItems mutableURLRequest.url = urlComponents?.url return (mutableURLRequest, nil) } diff --git a/Sources/LyftUI/LyftButton.swift b/Sources/LyftUI/LyftButton.swift index adc2e4e..b317e13 100644 --- a/Sources/LyftUI/LyftButton.swift +++ b/Sources/LyftUI/LyftButton.swift @@ -44,7 +44,7 @@ public class LyftButton: UIView { @IBOutlet private var price: UILabel? private var buttonStateView: UIView? - private var pressUpAction: ((Void) -> Void)? + private var pressUpAction: (() -> Void)? private var status: LyftButtonStatus = .noData { didSet { self.setupNib() }