Skip to content

Commit a28afe4

Browse files
Run formatter
Signed-off-by: Marquis Kurt <software@marquiskurt.net>
1 parent cb95765 commit a28afe4

File tree

55 files changed

+247
-212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+247
-212
lines changed

Alidade/Models/Tips/PinActionOnboardingTip.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ struct PinActionOnboardingTip: Tip {
2828

2929
var message: Text? {
3030
#if os(macOS)
31-
Text("Swipe or right click on a recent location to add it to your library.")
31+
Text("Swipe or right click on a recent location to add it to your library.")
3232
#else
33-
Text("Swipe or tap and hold on a recent location to add it to your library.")
33+
Text("Swipe or tap and hold on a recent location to add it to your library.")
3434
#endif
3535
}
3636
}

Alidade/Services/CartographyIntegrationService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ actor CartographyIntegrationService {
110110
return true
111111
case (.mismatchingService, .mismatchingService):
112112
return true
113-
case let (.fetchTaskFailed(lhsErr), .fetchTaskFailed(rhsErr)):
113+
case (.fetchTaskFailed(let lhsErr), .fetchTaskFailed(let rhsErr)):
114114
return lhsErr.localizedDescription == rhsErr.localizedDescription
115115
default:
116116
return false

Alidade/Services/CartographySearchService_v2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Created by Marquis Kurt on 19-10-2025.
66
//
77

8-
import Bedrock
98
import AlidadeSearchEngine
9+
import Bedrock
1010
import CubiomesKit
1111
import Foundation
1212
import MCMap

Alidade/Services/NetworkServiceable.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ enum NetworkServicableError: Error {
3030

3131
var localizedDescription: String {
3232
switch self {
33-
case let .session(error):
33+
case .session(let error):
3434
error.localizedDescription
35-
case let .nonHTTPResponse(response):
35+
case .nonHTTPResponse(let response):
3636
"The response that was returned wasn't an HTTP response (\(type(of: response))"
37-
case let .invalidResponseStatus(code):
37+
case .invalidResponseStatus(let code):
3838
"The response return a non-OK code: \(code)"
3939
}
4040
}

Alidade/Views/AlidadeSettingsView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ struct AlidadeSettingsView: View {
2727
VStack {
2828
InlineBanner(
2929
"Here be dragons",
30-
message: "The following flags control experimental features. Proceed with caution.")
30+
message: "The following flags control experimental features. Proceed with caution."
31+
)
3132
.inlineBannerVariant(.warning)
3233
.padding(.top)
3334
Form {

Alidade/Views/Commands/DebugCommands.swift

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@
66
//
77

88
#if DEBUG
9-
import SwiftUI
10-
import TipKit
9+
import SwiftUI
10+
import TipKit
1111

12-
/// A group of commands useful for debugging Alidade.
13-
///
14-
/// > Note: This command group is only available in debug builds of Alidade.
15-
struct DebugCommands: Commands {
16-
var body: some Commands {
17-
CommandMenu("Debug") {
18-
Menu("Tips") {
19-
Button("Show All Tips") {
20-
Tips.showAllTipsForTesting()
21-
}
22-
Button("Hide All Tips") {
23-
Tips.hideAllTipsForTesting()
24-
}
25-
Button("Reset Tip Datastore") {
26-
do {
27-
try Tips.resetDatastore()
28-
} catch {
29-
print("Failed to reset datastore: \(error.localizedDescription)")
12+
/// A group of commands useful for debugging Alidade.
13+
///
14+
/// > Note: This command group is only available in debug builds of Alidade.
15+
struct DebugCommands: Commands {
16+
var body: some Commands {
17+
CommandMenu("Debug") {
18+
Menu("Tips") {
19+
Button("Show All Tips") {
20+
Tips.showAllTipsForTesting()
21+
}
22+
Button("Hide All Tips") {
23+
Tips.hideAllTipsForTesting()
24+
}
25+
Button("Reset Tip Datastore") {
26+
do {
27+
try Tips.resetDatastore()
28+
} catch {
29+
print("Failed to reset datastore: \(error.localizedDescription)")
30+
}
3031
}
3132
}
3233
}
3334
}
3435
}
35-
}
3636
#endif

Alidade/Views/Detail/Cells/RedWindowPinGalleryCell.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import Bedrock
99
import ImageProcessing
1010
import MCMap
11-
import SwiftUI
1211
import QuickLook
12+
import SwiftUI
1313

1414
/// The cell used to display the images associated with this pin.
1515
///
@@ -68,7 +68,7 @@ struct RedWindowPinGalleryCell: RedWindowDetailCell {
6868
systemImage: "photo.stack",
6969
description: Text("Add photos from your device to show this place and what makes it special.")
7070
)
71-
.fontDesign(.serif)
71+
.fontDesign(.serif)
7272
}
7373
}
7474
.quickLookPreview($imageToPreview, in: imageURLs)

Alidade/Views/Forms/BluemapIntegrationFormSection.swift

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ struct BluemapIntegrationFormSection: View {
2222
Text("Bluemap")
2323
} description: {
2424
// swiftlint:disable:next line_length
25-
Text("Show common points of interest and where players are on your Minecraft server from the Bluemap plugin.\n[Learn more…](https://docs.alidade.dev/documentation/alidade/guide-bluemap)")
25+
Text(
26+
"Show common points of interest and where players are on your Minecraft server from the Bluemap plugin.\n[Learn more…](https://docs.alidade.dev/documentation/alidade/guide-bluemap)"
27+
)
2628
}
2729
Toggle("Enable Integration", isOn: $integration.enabled)
2830
} footer: {
@@ -34,9 +36,9 @@ struct BluemapIntegrationFormSection: View {
3436
Section {
3537
NamedTextField("Host", text: $integration.baseURL)
3638
.disabled(!integration.enabled)
37-
#if os(iOS)
38-
.keyboardType(.URL)
39-
#endif
39+
#if os(iOS)
40+
.keyboardType(.URL)
41+
#endif
4042
Stepper(
4143
"Refresh every: ^[\(Int(integration.refreshRate)) second](inflect: true)",
4244
value: $integration.refreshRate,
@@ -49,7 +51,9 @@ struct BluemapIntegrationFormSection: View {
4951
Text("Bluemap Server")
5052
} footer: {
5153
// swiftlint:disable:next line_length
52-
Text("Update player locations more frequently with Realtime Sync. [Learn more…](https://docs.alidade.dev/documentation/alidade/guide-bluemap#Realtime-player-sync)")
54+
Text(
55+
"Update player locations more frequently with Realtime Sync. [Learn more…](https://docs.alidade.dev/documentation/alidade/guide-bluemap#Realtime-player-sync)"
56+
)
5357
}
5458
.disabled(!integration.enabled)
5559

@@ -74,14 +78,14 @@ struct BluemapIntegrationFormSection: View {
7478
}
7579

7680
#if os(iOS)
77-
#Preview {
78-
@Previewable @State var integration = MCMapBluemapIntegration(baseURL: "mcmap.augenwaldburg.com")
79-
NavigationStack {
80-
Form {
81-
BluemapIntegrationFormSection(integration: $integration)
81+
#Preview {
82+
@Previewable @State var integration = MCMapBluemapIntegration(baseURL: "mcmap.augenwaldburg.com")
83+
NavigationStack {
84+
Form {
85+
BluemapIntegrationFormSection(integration: $integration)
86+
}
87+
.navigationTitle("Bluemap")
88+
.navigationBarTitleDisplayMode(.inline)
8289
}
83-
.navigationTitle("Bluemap")
84-
.navigationBarTitleDisplayMode(.inline)
8590
}
86-
}
8791
#endif

Alidade/Views/Forms/MapCreatorForm.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ struct MapCreatorForm: View {
8787
// swiftlint:disable line_length
8888
InlineBanner(
8989
"Alidade works with Minecraft: Java Edition.",
90-
message: "Maps that use version numbers and seeds from _Minecraft: Java Edition_ will work with Alidade. Minecraft (Bedrock) is currently not supported.")
90+
message:
91+
"Maps that use version numbers and seeds from _Minecraft: Java Edition_ will work with Alidade. Minecraft (Bedrock) is currently not supported."
92+
)
9193
// swiftlint:enable line_length
9294
.inlineBannerVariant(.information)
9395
#endif
@@ -103,7 +105,7 @@ struct MapCreatorForm: View {
103105
}
104106
.navigationTitle("Bluemap")
105107
#if os(macOS)
106-
.formStyle(.grouped)
108+
.formStyle(.grouped)
107109
#endif
108110
} label: {
109111
Label {
@@ -143,7 +145,7 @@ struct MapCreatorForm: View {
143145
integrations: $file.integrations,
144146
displayMode: .edit
145147
)
146-
.navigationTitle("New World")
148+
.navigationTitle("New World")
147149
}
148150
}
149151

Alidade/Views/Forms/PinCreatorForm.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ struct PinCreatorForm: View {
5252
Section {
5353
Group {
5454
#if os(iOS)
55-
LabeledContent("X Coordinate: ") {
56-
TextField("X Coordinate", value: $locationX, format: .number)
57-
}
55+
LabeledContent("X Coordinate: ") {
56+
TextField("X Coordinate", value: $locationX, format: .number)
57+
}
5858
#else
59-
TextField("X Coordinate", value: $locationX, format: .number)
59+
TextField("X Coordinate", value: $locationX, format: .number)
6060
#endif
6161
}
6262
Group {
6363
#if os(iOS)
64-
LabeledContent("Z Coordinate: ") {
65-
TextField("Z Coordinate", value: $locationY, format: .number)
66-
}
64+
LabeledContent("Z Coordinate: ") {
65+
TextField("Z Coordinate", value: $locationY, format: .number)
66+
}
6767
#else
68-
TextField("Z Coordinate", value: $locationY, format: .number)
68+
TextField("Z Coordinate", value: $locationY, format: .number)
6969
#endif
7070
}
7171
WorldCodedDimensionPicker(selection: $dimension)

0 commit comments

Comments
 (0)