Skip to content

Instantly share code, notes, and snippets.

@balrajOla
Created June 4, 2019 18:51
Show Gist options
  • Save balrajOla/3a6be26802fd1d12c2fadd0fcc26fad9 to your computer and use it in GitHub Desktop.
Save balrajOla/3a6be26802fd1d12c2fadd0fcc26fad9 to your computer and use it in GitHub Desktop.
@available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
public protocol View : _View {
/// The type of view representing the body of this view.
///
/// When you create a custom view, Swift infers this type from your
/// implementation of the required `body` property.
associatedtype Body : View
/// Declares the content and behavior of this view.
var body: Self.Body { get }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment