Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 1.23 KB

README.md

File metadata and controls

34 lines (31 loc) · 1.23 KB

OverFullScreenSheet

OverFullScreenSheet is a SwiftUI way to show cotnent over current context.

Installation

Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.

Xcode 11+ is required to build OverFullScreenSheet using Swift Package Manager.

To integrate OverFullScreenSheet into your Xcode project using Swift Package Manager, add it to the dependencies value of your Package.swift:

dependencies: [
    .package(url: "https://github.com/anisim101/OverFullScreenSheet")
]

Quick Start

Use OverFullScreenSheet like .sheet(item), .sheet(isPresented).

.overFullScreenSheet(item: selectedItem) { item in
       ZStack {
        Color.black
            .opacity(0.3)
        Text(item)
    }
}
.overFullScreenSheet(isPresented: $show) {
       ZStack {
        Color.black
            .opacity(0.3)
        Text("Hello World")
    }
}