diff --git a/WeatherApp-iOS/Helpers/WeatherInformation+Utils.swift b/WeatherApp-iOS/Helpers/WeatherInformation+Utils.swift index bc08e37..0468917 100644 --- a/WeatherApp-iOS/Helpers/WeatherInformation+Utils.swift +++ b/WeatherApp-iOS/Helpers/WeatherInformation+Utils.swift @@ -7,7 +7,6 @@ import Foundation import WeatherApp -import CoreLocation extension WeatherInformation.WeatherType { var backgroundColorName: String { @@ -26,9 +25,3 @@ extension WeatherInformation.WeatherType { } } } - -extension Coordinates { - var toCLCoordinates: CLLocationCoordinate2D { - .init(latitude: latitude, longitude: longitude) - } -} diff --git a/WeatherApp/Models/Coordinates.swift b/WeatherApp/Models/Coordinates.swift index 13b867f..a3cdc40 100644 --- a/WeatherApp/Models/Coordinates.swift +++ b/WeatherApp/Models/Coordinates.swift @@ -6,6 +6,7 @@ // import Foundation +import CoreLocation public struct Coordinates: Equatable { public let latitude: Double @@ -16,3 +17,9 @@ public struct Coordinates: Equatable { self.longitude = longitude } } + +extension Coordinates { + public var toCLCoordinates: CLLocationCoordinate2D { + .init(latitude: latitude, longitude: longitude) + } +}