You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This will default to the ``EmptyRegistry/None`` type if you don't support any custom modifiers.
68
+
associatedtypeModifierType:RawRepresentable=EmptyRegistry.None where ModifierType.RawValue== String
79
69
/// The type of view this registry returns from the `lookup` method.
80
70
///
81
71
/// Generally, implementors will use an opaque return type on their ``lookup(_:element:context:)-895au`` implementations and this will be inferred automatically.
82
-
associatedtypeCustomView:View
72
+
associatedtypeCustomView:View=Never
83
73
/// The type of view this registry produces for loading views.
84
74
///
85
75
/// Generally, implementors will use an opaque return type on their ``loadingView(for:state:)-2uoy9`` implementations and this will be inferred automatically.
86
-
associatedtypeLoadingView:View
76
+
associatedtypeLoadingView:View=Never
87
77
88
78
/// This method is called by LiveView Native when it needs to construct a custom view.
Then, define a type alias called `ModifierType` that is `EmptyRegistry.None`. This tells the framework that your registry doesn't support any custom modifiers.
In the `lookup` method, we'll construct a `CatRatingView`, passing in the `context` parameter of the lookup method. This will cause a compiler error, but don't worry; in Section 3, we'll implement the view and resolve it.
0 commit comments