The opposite of padding with SwiftUI
View+Bleed
The opposite of padding.
Example
import SwiftUI
struct ContentView: View {
let padding = 10
var body: some View {
Group {
Image("card")
.bleed([.horizontal, .top], padding)
Text("Testing")
}
.padding(padding)
}
}