Skip to content

Commit 2f4df86

Browse files
committed
Make default View protocol method impls public
1 parent 491f3e1 commit 2f4df86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/SwiftCrossUI/Views/View.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ extension View {
7676

7777
/// The default `View.children` implementation. Haters may see this as a
7878
/// composition lover re-implementing inheritance; I see it as innovation.
79-
func defaultChildren<Backend: AppBackend>(
79+
public func defaultChildren<Backend: AppBackend>(
8080
backend: Backend,
8181
snapshots: [ViewGraphSnapshotter.NodeSnapshot]?,
8282
environment: EnvironmentValues
@@ -94,7 +94,7 @@ extension View {
9494
/// The default `View.layoutableChildren` implementation. Haters may see
9595
/// this as a composition lover re-implementing inheritance; I see it as
9696
/// innovation.
97-
func defaultLayoutableChildren<Backend: AppBackend>(
97+
public func defaultLayoutableChildren<Backend: AppBackend>(
9898
backend: Backend,
9999
children: any ViewGraphNodeChildren
100100
) -> [LayoutSystem.LayoutableChild] {
@@ -110,7 +110,7 @@ extension View {
110110

111111
/// The default `View.asWidget` implementation. Haters may see this as a
112112
/// composition lover re-implementing inheritance; I see it as innovation.
113-
func defaultAsWidget<Backend: AppBackend>(
113+
public func defaultAsWidget<Backend: AppBackend>(
114114
_ children: any ViewGraphNodeChildren,
115115
backend: Backend
116116
) -> Backend.Widget {
@@ -138,7 +138,7 @@ extension View {
138138

139139
/// The default `View.update` implementation. Haters may see this as a
140140
/// composition lover re-implementing inheritance; I see it as innovation.
141-
func defaultUpdate<Backend: AppBackend>(
141+
public func defaultUpdate<Backend: AppBackend>(
142142
_ widget: Backend.Widget,
143143
children: any ViewGraphNodeChildren,
144144
proposedSize: SIMD2<Int>,

0 commit comments

Comments
 (0)