Skip to content

Commit f36e0ab

Browse files
authored
Merge pull request #435 from Esri/philium/address-complete-strict-concurrency-errors
[Setup] Address complete strict concurrency errors
2 parents cc01b1a + 00c8bff commit f36e0ab

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

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

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

4040
/// The view content of the settings sheet.
41-
private var settingsContent: some View {
41+
@MainActor private var settingsContent: some View {
4242
NavigationStack {
4343
content
4444
.navigationTitle("\(label) Settings")

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

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

9090
/// The content to display in the sheet with a title and done button.
91-
private var sheetContent: some View {
91+
@MainActor private var sheetContent: some View {
9292
NavigationStack {
9393
content()
9494
.navigationTitle(title)

Shared/Samples/Group layers together/GroupLayersTogetherView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +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-
private var layersList: some View {
70+
@MainActor private var layersList: some View {
7171
NavigationStack {
7272
List {
7373
ForEach(scene.operationalLayers as! [GroupLayer], id: \.name) { groupLayer in

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)