This works, but unnecessarily exposes T
in Unwrap
's generic parameters.
import SwiftUI
struct Unwrap<T, Content>: View where Content: View {
let body: Content
init(value: T?, @ViewBuilder ifSome: (T) -> Content, @ViewBuilder ifNone: () -> Content) {
if let value = value {