Skip to content

Commit 4daff2f

Browse files
committed
Address complete strict concurrency errors
1 parent cc01b1a commit 4daff2f

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

Shared/Samples/Animate 3D graphic/Animate3DGraphicView.SettingsView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ extension Animate3DGraphicView {
3838
}
3939

4040
/// The view content of the settings sheet.
41+
@MainActor
4142
private var settingsContent: some View {
4243
NavigationStack {
4344
content

Shared/Samples/Find route around barriers/FindRouteAroundBarriersView.Views.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ extension FindRouteAroundBarriersView {
8888
}
8989

9090
/// The content to display in the sheet with a title and done button.
91+
@MainActor
9192
private var sheetContent: some View {
9293
NavigationStack {
9394
content()

Shared/Samples/Group layers together/GroupLayersTogetherView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ struct GroupLayersTogetherView: View {
6767
}
6868

6969
/// The list of group layers and their child layers that are currently added to the map.
70+
@MainActor
7071
private var layersList: some View {
7172
NavigationStack {
7273
List {

Shared/Supporting Files/Models/Sample.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ protocol Sample {
3535
var hasDependencies: Bool { get }
3636

3737
/// Creates the view for the sample.
38+
@MainActor
3839
func makeBody() -> AnyView
3940
}
4041

0 commit comments

Comments
 (0)