Fix style
Some checks failed
SwiftLint / SwiftLint (push) Successful in 4s
Deploy Docs / publish (push) Has been cancelled

This commit is contained in:
david-swift 2024-11-20 08:07:32 +01:00
parent 645c8ec5a7
commit a740e4ff27
2 changed files with 3 additions and 1 deletions

View File

@ -86,6 +86,7 @@ public struct ModifierWrapper: WinUIWidget, CommandBarWidget {
return storage return storage
} }
// swiftlint:disable cyclomatic_complexity
/// Update the stored content. /// Update the stored content.
/// - Parameters: /// - Parameters:
/// - storage: The storage to update. /// - storage: The storage to update.
@ -136,5 +137,6 @@ public struct ModifierWrapper: WinUIWidget, CommandBarWidget {
} }
storage.previousState = self storage.previousState = self
} }
// swiftlint:enable cyclomatic_complexity
} }

View File

@ -31,7 +31,7 @@ public struct VStack: WinUIWidget, Wrapper {
} }
.inspectOnAppear { storage in .inspectOnAppear { storage in
let rows: [Grid.Row]? = storage.content[.mainContent]?.map { storage in let rows: [Grid.Row]? = storage.content[.mainContent]?.map { storage in
return if storage.fields["v-stretch"] as? Bool == true { if storage.fields["v-stretch"] as? Bool == true {
.init(height: 1) .init(height: 1)
} else { } else {
.init() .init()