Swiftpack.co -  ReanSn0w/ParticialSheet as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
ReanSn0w/ParticialSheet
Пакет для отображения модальных окон в окружении SwiftUI.
.package(url: "https://github.com/ReanSn0w/ParticialSheet.git", from: "v1.0.0")

ParticialSheet

Пакет для отображения модальных окон в окружении SwiftUI.

Пример использования

import SwiftUI
import ParticialSheet

struct ParticialSheetExample: View {
    @State var opened: Bool = false
    
    var body: some View {
        Button(action: { self.opened.toggle() }) {
            Text("Open")
        }
        .particialSheet(isPresented: $opened, sizes: [.fixed(100), .marginFromTop(150)]) {
            Text("Particial Sheet")
        }
    }
}

Данный пакет основан на библиотеке FittedSheet

Лицензия MIT

GitHub

link
Stars: 0
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

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