diff --git a/Sources/SwiftLocation/Request/Requests/GPSLocation/GPSLocationOptions.swift b/Sources/SwiftLocation/Request/Requests/GPSLocation/GPSLocationOptions.swift index 7a3e17f3..203f7849 100644 --- a/Sources/SwiftLocation/Request/Requests/GPSLocation/GPSLocationOptions.swift +++ b/Sources/SwiftLocation/Request/Requests/GPSLocation/GPSLocationOptions.swift @@ -118,8 +118,8 @@ public class GPSLocationOptions: CustomStringConvertible, Codable { public var description: String { switch self { - case .immediate(let t): return "immediate \(t)s" - case .delayed(let t): return "delayed \(t)s" + case .immediate(let t): return "immediate \(abs(t))s" + case .delayed(let t): return "delayed \(abs(t))s" } } diff --git a/SwiftLocationPlayground/SwiftLocationPlayground/View Controllers/Features/Location by GPS/GPSController.swift b/SwiftLocationPlayground/SwiftLocationPlayground/View Controllers/Features/Location by GPS/GPSController.swift index f1e87e3e..f5b1d411 100644 --- a/SwiftLocationPlayground/SwiftLocationPlayground/View Controllers/Features/Location by GPS/GPSController.swift +++ b/SwiftLocationPlayground/SwiftLocationPlayground/View Controllers/Features/Location by GPS/GPSController.swift @@ -94,7 +94,7 @@ class GPSController: UIViewController, UITableViewDelegate, UITableViewDataSourc case .subscription: cell.valueLabel.text = serviceOptions.subscription.description case .timeoutInterval: - cell.valueLabel.text = serviceOptions.minTimeInterval?.format() ?? NOT_SET + cell.valueLabel.text = serviceOptions.timeout?.description ?? NOT_SET case .precise: cell.valueLabel.text = serviceOptions.precise?.description ?? USER_SET }