From 8a5b8f0d404a521d2786be28631625f4c1f753cc Mon Sep 17 00:00:00 2001 From: hilmyveradin Date: Fri, 16 Aug 2024 16:05:36 +0700 Subject: [PATCH] fix swiftlint --- Examples/OTPKitDemo/OTPKitDemo/OTPKitDemoApp.swift | 2 +- .../OriginDestination/OriginDestinationSheetEnvironment.swift | 2 +- .../OriginDestination/Sheets/AddFavoriteLocationsSheet.swift | 2 +- .../OriginDestination/Sheets/FavoriteLocationDetailSheet.swift | 2 +- .../OriginDestination/Sheets/MoreRecentLocationsSheet.swift | 2 +- Sources/OTPKit/Services/TripPlannerService.swift | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Examples/OTPKitDemo/OTPKitDemo/OTPKitDemoApp.swift b/Examples/OTPKitDemo/OTPKitDemo/OTPKitDemoApp.swift index 4aa6847..4b49c7a 100644 --- a/Examples/OTPKitDemo/OTPKitDemo/OTPKitDemoApp.swift +++ b/Examples/OTPKitDemo/OTPKitDemo/OTPKitDemoApp.swift @@ -26,7 +26,7 @@ struct OTPKitDemoApp: App { locationManager: CLLocationManager(), searchCompleter: MKLocalSearchCompleter() ) - + let sheetEnvironment = OriginDestinationSheetEnvironment() var body: some Scene { diff --git a/Sources/OTPKit/Features/OriginDestination/OriginDestinationSheetEnvironment.swift b/Sources/OTPKit/Features/OriginDestination/OriginDestinationSheetEnvironment.swift index 0324f70..3414d77 100644 --- a/Sources/OTPKit/Features/OriginDestination/OriginDestinationSheetEnvironment.swift +++ b/Sources/OTPKit/Features/OriginDestination/OriginDestinationSheetEnvironment.swift @@ -22,7 +22,7 @@ public final class OriginDestinationSheetEnvironment { /// Selected detail favorite locations that will be shown in `FavoriteLocationDetailSheet` public var selectedDetailFavoriteLocation: Location? - + public var isSheetOpenedBinding: Binding { Binding( get: { self.isSheetOpened }, diff --git a/Sources/OTPKit/Features/OriginDestination/Sheets/AddFavoriteLocationsSheet.swift b/Sources/OTPKit/Features/OriginDestination/Sheets/AddFavoriteLocationsSheet.swift index bf05ee2..44bc64b 100644 --- a/Sources/OTPKit/Features/OriginDestination/Sheets/AddFavoriteLocationsSheet.swift +++ b/Sources/OTPKit/Features/OriginDestination/Sheets/AddFavoriteLocationsSheet.swift @@ -11,7 +11,7 @@ import SwiftUI /// Users can search and add their favorite locations public struct AddFavoriteLocationsSheet: View { @Environment(\.dismiss) var dismiss - @Environment(OriginDestinationSheetEnvironment.self) private var sheetEnvironment + @Environment(OriginDestinationSheetEnvironment.self) private var sheetEnvironment @Environment(TripPlannerService.self) private var tripPlanner @State private var search = "" diff --git a/Sources/OTPKit/Features/OriginDestination/Sheets/FavoriteLocationDetailSheet.swift b/Sources/OTPKit/Features/OriginDestination/Sheets/FavoriteLocationDetailSheet.swift index 83d62fb..b2e3fca 100644 --- a/Sources/OTPKit/Features/OriginDestination/Sheets/FavoriteLocationDetailSheet.swift +++ b/Sources/OTPKit/Features/OriginDestination/Sheets/FavoriteLocationDetailSheet.swift @@ -12,7 +12,7 @@ import SwiftUI public struct FavoriteLocationDetailSheet: View { @Environment(\.dismiss) private var dismiss @Environment(OriginDestinationSheetEnvironment.self) private var sheetEnvironment - + @State private var isShowErrorAlert = false @State private var errorMessage = "" diff --git a/Sources/OTPKit/Features/OriginDestination/Sheets/MoreRecentLocationsSheet.swift b/Sources/OTPKit/Features/OriginDestination/Sheets/MoreRecentLocationsSheet.swift index 481f81d..510f50f 100644 --- a/Sources/OTPKit/Features/OriginDestination/Sheets/MoreRecentLocationsSheet.swift +++ b/Sources/OTPKit/Features/OriginDestination/Sheets/MoreRecentLocationsSheet.swift @@ -12,7 +12,7 @@ public struct MoreRecentLocationsSheet: View { @Environment(\.dismiss) var dismiss @Environment(OriginDestinationSheetEnvironment.self) private var sheetEnvironment - + public var body: some View { VStack { PageHeaderView(text: "Recents") { diff --git a/Sources/OTPKit/Services/TripPlannerService.swift b/Sources/OTPKit/Services/TripPlannerService.swift index 48b2ed3..15b5360 100644 --- a/Sources/OTPKit/Services/TripPlannerService.swift +++ b/Sources/OTPKit/Services/TripPlannerService.swift @@ -68,7 +68,7 @@ public final class TripPlannerService: NSObject { set: { _ in } ) } - + public var currentCameraPositionBinding: Binding { Binding( get: { self.currentCameraPosition },