Swiftpack.co - ericlewis/View-Bleed as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by ericlewis.
ericlewis/View-Bleed 1.0.0
The opposite of padding.
⭐️ 2
🕓 1 week ago
iOS macOS tvOS
.package(url: "https://github.com/ericlewis/View-Bleed.git", from: "1.0.0")

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)
    }
}

GitHub

link
Stars: 2
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics