yattee/Backports/Backport.swift

14 lines
232 B
Swift
Raw Normal View History

2021-11-28 14:37:55 +00:00
import SwiftUI
public struct Backport<Content> {
public let content: Content
public init(_ content: Content) {
self.content = content
}
}
extension View {
var backport: Backport<Self> { Backport(self) }
}