In SwiftUI there\'s frequently a need to display an \"empty\" view based on some condition, e.g.:
struct OptionalText:
As of Xcode 12 beta 2 the Group view is no longer needed and if let declarations are supported, so the resulting body can be a bit more succint:
Group
if let
body
var body: some View { if let text = text { Text(text) } else { EmptyView() } }