diff --git a/HPOpenWeather.podspec b/HPOpenWeather.podspec index 3a9487a..a597a60 100644 --- a/HPOpenWeather.podspec +++ b/HPOpenWeather.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "HPOpenWeather" - s.version = "3.1.0" + s.version = "3.1.1" s.summary = "Cross-platform framework to communicate with the OpenWeatherMap JSON API" s.license = { :type => "MIT", :file => "LICENSE.md" } diff --git a/Sources/HPOpenWeather/HPOpenWeather.swift b/Sources/HPOpenWeather/HPOpenWeather.swift index c11a972..476736e 100644 --- a/Sources/HPOpenWeather/HPOpenWeather.swift +++ b/Sources/HPOpenWeather/HPOpenWeather.swift @@ -7,6 +7,10 @@ public final class HPOpenWeather { public var apiKey: String? + public init(apiKey: String? = nil) { + self.apiKey = apiKey + } + @discardableResult public func requestWeather( _ request: R?,