Swiftpack.co - hamed8080/Swipy as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by hamed8080.
hamed8080/Swipy 1.0.4
iOS widget-style animation for your apps.
⭐️ 1
🕓 1 year ago
iOS macOS macCatalyst
.package(url: "https://github.com/hamed8080/Swipy.git", from: "1.0.4")

Swipy



Do you want Widget-style animation on iOS devices in your app by swiping and changing the view?


Installation

SPM

Add in Package.swift:

.package(url: "https://github.com/hamed8080/Swipy", branch: "main")

Usage

VSwipy(data, selection: $selectedItem) { item in
    UserConfigView(userConfig: item)
        .frame(height: containerHeight)
        .background(Color.swipyBackground)
        .cornerRadius(12)
} onSwipe: { item in
    // Write your code here after the switching has been completed.
}
.frame(height: containerHeight)
.background(Color.orange.opacity(0.3))
.cornerRadius(12)

VSwipy(users) { user in
    HStack {
        ...
    }
    .frame(minHeight: 0, maxHeight: containerHeight)
    .background(Color.white)
    .cornerRadius(24)

} onSwipe: { item in
    selectedItem = item
}
.frame(minHeight: 0, maxHeight: containerHeight)
.background(Color.black)
.cornerRadius(24)


Contributing to Swipy

Please see the contributing guide for more information.

GitHub

link
Stars: 1
Last commit: 24 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

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