OverFullScreenSheet
is a SwiftUI way to show cotnent over current context.
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")
]
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")
}
}