From 77a29dfe2d274851f43efb36349cac63fff09ff6 Mon Sep 17 00:00:00 2001 From: Vishnu Ravi Date: Mon, 27 May 2024 23:03:45 -0400 Subject: [PATCH] Fix SwiftLint errors --- StrokeCog.xcodeproj/project.pbxproj | 4 ++-- StrokeCog/Map/RefreshIcon.swift | 1 + StrokeCog/Map/StrokeCogMapView.swift | 18 +++++++++--------- .../Supporting Files/GoogleService-Info.plist | 14 +++++++------- 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/StrokeCog.xcodeproj/project.pbxproj b/StrokeCog.xcodeproj/project.pbxproj index c6eb1e2..9a6f13f 100644 --- a/StrokeCog.xcodeproj/project.pbxproj +++ b/StrokeCog.xcodeproj/project.pbxproj @@ -762,7 +762,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = ""; - DEVELOPMENT_TEAM = B2Q3T3P8HP; + DEVELOPMENT_TEAM = ""; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "StrokeCog/Supporting Files/Info.plist"; @@ -965,7 +965,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_ASSET_PATHS = ""; - DEVELOPMENT_TEAM = B2Q3T3P8HP; + DEVELOPMENT_TEAM = ""; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "StrokeCog/Supporting Files/Info.plist"; diff --git a/StrokeCog/Map/RefreshIcon.swift b/StrokeCog/Map/RefreshIcon.swift index e0e2a12..2cc4a8e 100644 --- a/StrokeCog/Map/RefreshIcon.swift +++ b/StrokeCog/Map/RefreshIcon.swift @@ -30,6 +30,7 @@ struct RefreshIcon: View { .onDisappear { rotationAngle = 0 } + .accessibilityLabel("Refreshing map") } } } diff --git a/StrokeCog/Map/StrokeCogMapView.swift b/StrokeCog/Map/StrokeCogMapView.swift index 4823043..0b622fb 100644 --- a/StrokeCog/Map/StrokeCogMapView.swift +++ b/StrokeCog/Map/StrokeCogMapView.swift @@ -24,7 +24,6 @@ struct StrokeCogMapView: View { @State private var isRefreshing = false var body: some View { - // swiftlint:disable closure_body_length accessibility_label_for_image NavigationStack { ZStack { MapManagerViewWrapper() @@ -52,20 +51,13 @@ struct StrokeCogMapView: View { refreshMap() }) { Image(systemName: "arrow.clockwise") + .accessibilityLabel("Refresh map") } } } } } - private func refreshMap() { - Task { - isRefreshing = true - await locationModule.fetchLocations() - isRefreshing = false - } - } - private var optionsPanelButton: some View { Button { withAnimation { @@ -84,6 +76,14 @@ struct StrokeCogMapView: View { init(presentingAccount: Binding) { self._presentingAccount = presentingAccount } + + private func refreshMap() { + Task { + isRefreshing = true + await locationModule.fetchLocations() + isRefreshing = false + } + } } struct StrokeCogMapView_Previews: PreviewProvider { diff --git a/StrokeCog/Supporting Files/GoogleService-Info.plist b/StrokeCog/Supporting Files/GoogleService-Info.plist index cd9f057..9387022 100644 --- a/StrokeCog/Supporting Files/GoogleService-Info.plist +++ b/StrokeCog/Supporting Files/GoogleService-Info.plist @@ -3,7 +3,7 @@ API_KEY - AIzaSyClLjkWB5Eka6fRb4BuyF-Kcq2XlAbIYfE + KEY GCM_SENDER_ID 1071663459836 PLIST_VERSION @@ -15,16 +15,16 @@ STORAGE_BUCKET strokecog-9d7a6.appspot.com IS_ADS_ENABLED - + IS_ANALYTICS_ENABLED - + IS_APPINVITE_ENABLED - + IS_GCM_ENABLED - + IS_SIGNIN_ENABLED - + GOOGLE_APP_ID 1:1071663459836:ios:896e9605eaa7d232ef1679 - \ No newline at end of file +