Skip to content

Commit

Permalink
Fix SwiftLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuravi committed May 28, 2024
1 parent 489e6a7 commit 77a29df
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions StrokeCog.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down
1 change: 1 addition & 0 deletions StrokeCog/Map/RefreshIcon.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct RefreshIcon: View {
.onDisappear {
rotationAngle = 0
}
.accessibilityLabel("Refreshing map")
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions StrokeCog/Map/StrokeCogMapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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 {
Expand All @@ -84,6 +76,14 @@ struct StrokeCogMapView: View {
init(presentingAccount: Binding<Bool>) {
self._presentingAccount = presentingAccount
}

private func refreshMap() {
Task {
isRefreshing = true
await locationModule.fetchLocations()
isRefreshing = false
}
}
}

struct StrokeCogMapView_Previews: PreviewProvider {
Expand Down
14 changes: 7 additions & 7 deletions StrokeCog/Supporting Files/GoogleService-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>API_KEY</key>
<string>AIzaSyClLjkWB5Eka6fRb4BuyF-Kcq2XlAbIYfE</string>
<string>KEY</string>
<key>GCM_SENDER_ID</key>
<string>1071663459836</string>
<key>PLIST_VERSION</key>
Expand All @@ -15,16 +15,16 @@
<key>STORAGE_BUCKET</key>
<string>strokecog-9d7a6.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<false/>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<false/>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<true/>
<key>IS_GCM_ENABLED</key>
<true></true>
<true/>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<true/>
<key>GOOGLE_APP_ID</key>
<string>1:1071663459836:ios:896e9605eaa7d232ef1679</string>
</dict>
</plist>
</plist>

0 comments on commit 77a29df

Please sign in to comment.