Skip to content

Commit 0f3e7f2

Browse files
committed
Isolation
'nonisolated' is redundant on generic struct's stored properties; this is an error in Swift 6
1 parent 95143b3 commit 0f3e7f2

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/Flow/HFlow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import SwiftUI
2121
@frozen
2222
public struct HFlow<Content: View>: View {
2323
@usableFromInline
24-
nonisolated let layout: HFlowLayout
24+
let layout: HFlowLayout
2525
@usableFromInline
2626
let content: Content
2727

Sources/Flow/HFlowLayout.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import SwiftUI
44
@frozen
55
public struct HFlowLayout: Sendable {
66
@usableFromInline
7-
nonisolated let layout: FlowLayout
7+
let layout: FlowLayout
88

99
/// Creates a horizontal flow with the given spacing and vertical alignment.
1010
///

Sources/Flow/VFlow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import SwiftUI
2121
@frozen
2222
public struct VFlow<Content: View>: View {
2323
@usableFromInline
24-
nonisolated let layout: VFlowLayout
24+
let layout: VFlowLayout
2525
@usableFromInline
2626
let content: Content
2727

0 commit comments

Comments
 (0)