Skip to content

Commit

Permalink
Isolation
Browse files Browse the repository at this point in the history
'nonisolated' is redundant on generic struct's stored properties; this is an error in Swift 6
  • Loading branch information
tevelee committed Jul 31, 2024
1 parent 95143b3 commit 0f3e7f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Flow/HFlow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import SwiftUI
@frozen
public struct HFlow<Content: View>: View {
@usableFromInline
nonisolated let layout: HFlowLayout
let layout: HFlowLayout
@usableFromInline
let content: Content

Expand Down
2 changes: 1 addition & 1 deletion Sources/Flow/HFlowLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import SwiftUI
@frozen
public struct HFlowLayout: Sendable {
@usableFromInline
nonisolated let layout: FlowLayout
let layout: FlowLayout

/// Creates a horizontal flow with the given spacing and vertical alignment.
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/Flow/VFlow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import SwiftUI
@frozen
public struct VFlow<Content: View>: View {
@usableFromInline
nonisolated let layout: VFlowLayout
let layout: VFlowLayout
@usableFromInline
let content: Content

Expand Down

0 comments on commit 0f3e7f2

Please sign in to comment.