Skip to content

Commit

Permalink
revert coordinates move
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdmotoc committed Aug 25, 2023
1 parent f1e5006 commit c4016d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions WeatherApp-iOS/Helpers/WeatherInformation+Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import Foundation
import WeatherApp
import CoreLocation

extension WeatherInformation.WeatherType {
var backgroundColorName: String {
Expand All @@ -26,9 +25,3 @@ extension WeatherInformation.WeatherType {
}
}
}

extension Coordinates {
var toCLCoordinates: CLLocationCoordinate2D {
.init(latitude: latitude, longitude: longitude)
}
}
7 changes: 7 additions & 0 deletions WeatherApp/Models/Coordinates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//

import Foundation
import CoreLocation

public struct Coordinates: Equatable {
public let latitude: Double
Expand All @@ -16,3 +17,9 @@ public struct Coordinates: Equatable {
self.longitude = longitude
}
}

extension Coordinates {
public var toCLCoordinates: CLLocationCoordinate2D {
.init(latitude: latitude, longitude: longitude)
}
}

0 comments on commit c4016d8

Please sign in to comment.