
PreviewProvider
is similar to the View
protocol in that it requires a value of the opaque return type some View
. It differs only in the name of the value, previews
instead of body
, and in the requirement that the value is static
.
This means that it belongs to the type itself, and not to an individual object of that typ…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.