Skip to content

Commit

Permalink
fix swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
hilmyveradin committed Aug 16, 2024
1 parent 237a9c8 commit 8a5b8f0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Examples/OTPKitDemo/OTPKitDemo/OTPKitDemoApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct OTPKitDemoApp: App {
locationManager: CLLocationManager(),
searchCompleter: MKLocalSearchCompleter()
)

let sheetEnvironment = OriginDestinationSheetEnvironment()

var body: some Scene {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Bool> {
Binding(
get: { self.isSheetOpened },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
2 changes: 1 addition & 1 deletion Sources/OTPKit/Services/TripPlannerService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public final class TripPlannerService: NSObject {
set: { _ in }
)
}

public var currentCameraPositionBinding: Binding<MapCameraPosition> {
Binding(
get: { self.currentCameraPosition },
Expand Down

0 comments on commit 8a5b8f0

Please sign in to comment.