Skip to content

Commit 98197c3

Browse files
committed
swiftformat
1 parent d454902 commit 98197c3

File tree

1 file changed

+52
-31
lines changed

1 file changed

+52
-31
lines changed

Tests/MapLibreSwiftUITests/Examples/MapControlsTests.swift

Lines changed: 52 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,73 +11,94 @@ final class MapControlsTests: XCTestCase {
1111
@MainActor
1212
func testEmptyControls() {
1313
assertView {
14-
MapView(styleURL: demoTilesURL, camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45)))
15-
.mapControls {
16-
// No controls
17-
}
14+
MapView(
15+
styleURL: demoTilesURL,
16+
camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45))
17+
)
18+
.mapControls {
19+
// No controls
20+
}
1821
}
1922
}
2023

2124
@MainActor
2225
func testLogoOnly() {
2326
assertView {
24-
MapView(styleURL: demoTilesURL, camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45)))
25-
.mapControls {
26-
LogoView()
27-
}
27+
MapView(
28+
styleURL: demoTilesURL,
29+
camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45))
30+
)
31+
.mapControls {
32+
LogoView()
33+
}
2834
}
2935
}
3036

3137
@MainActor
3238
func testLogoChangePosition() {
3339
assertView {
34-
MapView(styleURL: demoTilesURL, camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45)))
35-
.mapControls {
36-
LogoView()
37-
.position(.topLeft)
38-
}
40+
MapView(
41+
styleURL: demoTilesURL,
42+
camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45))
43+
)
44+
.mapControls {
45+
LogoView()
46+
.position(.topLeft)
47+
}
3948
}
4049
}
4150

4251
@MainActor
4352
func testCompassOnly() {
4453
assertView {
45-
MapView(styleURL: demoTilesURL, camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45)))
46-
.mapControls {
47-
CompassView()
48-
}
54+
MapView(
55+
styleURL: demoTilesURL,
56+
camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45))
57+
)
58+
.mapControls {
59+
CompassView()
60+
}
4961
}
5062
}
5163

5264
@MainActor
5365
func testCompassChangePosition() {
5466
assertView {
55-
MapView(styleURL: demoTilesURL, camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45)))
56-
.mapControls {
57-
CompassView()
58-
.position(.topLeft)
59-
}
67+
MapView(
68+
styleURL: demoTilesURL,
69+
camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45))
70+
)
71+
.mapControls {
72+
CompassView()
73+
.position(.topLeft)
74+
}
6075
}
6176
}
6277

6378
@MainActor
6479
func testAttributionOnly() {
6580
assertView {
66-
MapView(styleURL: demoTilesURL, camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45)))
67-
.mapControls {
68-
AttributionButton()
69-
}
81+
MapView(
82+
styleURL: demoTilesURL,
83+
camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45))
84+
)
85+
.mapControls {
86+
AttributionButton()
87+
}
7088
}
7189
}
7290

7391
@MainActor
7492
func testAttributionChangePosition() {
7593
assertView {
76-
MapView(styleURL: demoTilesURL, camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45)))
77-
.mapControls {
78-
AttributionButton()
79-
.position(.topLeft)
80-
}
94+
MapView(
95+
styleURL: demoTilesURL,
96+
camera: .constant(.center(CLLocationCoordinate2D(), zoom: 4, direction: 45))
97+
)
98+
.mapControls {
99+
AttributionButton()
100+
.position(.topLeft)
101+
}
81102
}
82103
}
83104
}

0 commit comments

Comments
 (0)