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
The way we add a view to View Library is quite similar to how we make our view support preview function.
73
82
The `LibraryContentProvider` protocol provides an ability to add custom views to the Xcode library.
74
83
After that, we go to the `ContentView.swift` file and add the user view.
@@ -82,7 +91,13 @@ Caveat:
82
91
3. When you use the system component, it will prefill all the parameters with usable default values. In our case, we get a user as our default value `User()`:
0 commit comments