Skip to content

Commit

Permalink
Resolve doc todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Jun 5, 2024
1 parent 24eee5c commit f6be572
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Spezi/Spezi/Spezi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ public class Spezi {
private var _viewModifiers: [ModuleReference: [any ViewModifier]] = [:]

/// Array of all SwiftUI `ViewModifiers` collected using `_ModifierPropertyWrapper` from the configured ``Module``s.
var viewModifiers: [any ViewModifier] { // TODO: doc that this rerenders the whole swiftui view stack!
///
/// Any changes to this property will cause a complete re-render of the SwiftUI view hierarchy. See `SpeziViewModifier`.
var viewModifiers: [any ViewModifier] {
_viewModifiers.reduce(into: []) { partialResult, entry in
partialResult.append(contentsOf: entry.value)
}
Expand Down

0 comments on commit f6be572

Please sign in to comment.