diff --git a/Sources/SkipUI/SkipUI/Compose/ComposeModifierView.swift b/Sources/SkipUI/SkipUI/Compose/ComposeModifierView.swift index 5fb82212..13471dc2 100644 --- a/Sources/SkipUI/SkipUI/Compose/ComposeModifierView.swift +++ b/Sources/SkipUI/SkipUI/Compose/ComposeModifierView.swift @@ -23,14 +23,14 @@ public enum ComposeModifierRole { } /// Used internally by modifiers to apply changes to the context supplied to modified views. -class ComposeModifierView: View { +public class ComposeModifierView: View { let view: View let role: ComposeModifierRole var action: (@Composable (inout ComposeContext) -> ComposeResult)? var composeContent: (@Composable (any View, ComposeContext) -> Void)? /// Constructor for subclasses. - init(view: any View, role: ComposeModifierRole = .unspecified) { + public init(view: any View, role: ComposeModifierRole = .unspecified) { // Don't copy view // SKIP REPLACE: this.view = view self.view = view @@ -38,13 +38,13 @@ class ComposeModifierView: View { } /// A modfiier that performs an action, optionally modifying the `ComposeContext` passed to the modified view. - init(targetView: any View, role: ComposeModifierRole = .unspecified, action: @Composable (inout ComposeContext) -> ComposeResult) { + public init(targetView: any View, role: ComposeModifierRole = .unspecified, action: @Composable (inout ComposeContext) -> ComposeResult) { self.init(view: targetView, role: role) self.action = action } /// A modifier that takes over the composition of the modified view. - init(contentView: any View, role: ComposeModifierRole = .unspecified, composeContent: @Composable (any View, ComposeContext) -> Void) { + public init(contentView: any View, role: ComposeModifierRole = .unspecified, composeContent: @Composable (any View, ComposeContext) -> Void) { self.init(view: contentView, role: role) self.composeContent = composeContent }