File tree 1 file changed +24
-2
lines changed 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -697,7 +697,7 @@ _You can enable the following settings in Xcode by running [this script](resourc
697
697
< details>
698
698
699
699
```swift
700
- // WRONG
700
+ // WRONG. These simple property wrappers should be written on the same line as the declaration.
701
701
struct SpaceshipDashboardView {
702
702
703
703
@State
@@ -724,7 +724,29 @@ _You can enable the following settings in Xcode by running [this script](resourc
724
724
```
725
725
726
726
```
727
- // WRONG
727
+ // WRONG. These complex attached macros should be written on the previous line.
728
+ struct SolarSystemView {
729
+
730
+ @Query (sort: \.distance ) var allPlanets: Planet
731
+
732
+ @Query (sort: \.age , order: .reverse ) var moonsByAge: Moon
733
+
734
+ }
735
+
736
+ // RIGHT
737
+ struct SolarSystemView {
738
+
739
+ @Query (sort: \.distance )
740
+ var allPlanets: Planet
741
+
742
+ @Query (sort: \.age , order: .reverse )
743
+ var oldestMoons: Moon
744
+
745
+ }
746
+ ```
747
+
748
+ ```
749
+ // WRONG. These long, complex attributes should be written on the previous line.
728
750
struct RocketFactory {
729
751
730
752
@available (* , unavailable , message : " No longer in production" ) var saturn5Builder: Saturn5Builder
You can’t perform that action at this time.
0 commit comments