Swiftpack.co -  rushairer/SwipeButton as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
SwipeButton for SwiftUI
.package(url: "https://github.com/rushairer/SwipeButton.git", from: "1.0.0")


GitHub code size in bytes GitHub GitHub release (latest by date including pre-releases) GitHub tag (latest by date)

A swipe button for SwiftUI if you do not using <List>.


SwipeButtonModifier(leftButtonLabel: (() -> SwipeActionContent)? = nil,
                    leftButtonColor: Color = .green,
                    leftButtonAction: (() -> Void)? = nil,
                    rightButtonLabel: (() -> SwipeActionContent)? = nil,
                    rightButtonColor: Color = .red,
                    rightButtonAction: (() -> Void)? = nil,
                    style: SwipeButtonStyle = .wave)
public enum SwipeButtonStyle {
    case wave
    case rectangle


struct SwipeButtonView_Previews: PreviewProvider {
    static var previews: some View {
        Text("Swipe Button")
            .frame(maxWidth: .infinity, maxHeight: .infinity)
            .modifier(SwipeButtonModifier(leftButtonLabel: {
                Image(systemName: "heart")
                    .font(.system(size: 16, weight: .bold))
            leftButtonAction: {
            rightButtonLabel: {
                Image(systemName: "xmark")
                    .font(.system(size: 16, weight: .bold))
            rightButtonAction: {
            style: .rectangle))
            .frame(height: 150)





The MIT License (MIT)


Stars: 0
Last commit: 2 days 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.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

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