All Projects → mroffmix → Swipeable-View

mroffmix / Swipeable-View

Licence: MIT license
Simple editActionsForRowAt functionality, written on SWIFTUI

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Swipeable-View

SwiftUI-App
This swiftUI Demo is very simple & easy to understand. This swiftUI demo includes On-boarding screens, login screen, forgot password screen, sign up screen, home & logout.
Stars: ✭ 175 (+372.97%)
Mutual labels:  swiftui, swift5, swiftui-components
AdvancedList-SwiftUI
MOVED to https://github.com/crelies/AdvancedList | Advanced list with empty, error and loading state implemented with SwiftUI
Stars: ✭ 41 (+10.81%)
Mutual labels:  swiftui, swiftui-components
StoreHelper
Implementing and testing In-App Purchases with StoreKit2 and StoreHelper in Xcode 13, Swift 5.5, SwiftUI, iOS 15 and macOS 12.
Stars: ✭ 158 (+327.03%)
Mutual labels:  swiftui, swift5
Shift
Light-weight EventKit wrapper.
Stars: ✭ 31 (-16.22%)
Mutual labels:  swiftui, swift5
stinsen
Coordinators in SwiftUI. Simple, powerful and elegant.
Stars: ✭ 563 (+1421.62%)
Mutual labels:  swiftui, swift5
LongWeekend-iOS
🏖📱 LongWeekend is iOS Application that supports checking long weekends when taking a vacation in Japan
Stars: ✭ 19 (-48.65%)
Mutual labels:  swiftui, swift5
SwiftUI-Tooltip
Easy Tooltip for your SwiftUI Project
Stars: ✭ 130 (+251.35%)
Mutual labels:  swiftui, swift5
AStack
The Missing SwiftUI Adaptive and Accessible Stacks Library.
Stars: ✭ 110 (+197.3%)
Mutual labels:  swiftui, swiftui-components
SwiftUI.TextEdit
SwiftUI proof-of-concept text edit component
Stars: ✭ 71 (+91.89%)
Mutual labels:  swiftui, swiftui-components
GameKitUI.swift
GameKit (GameCenter) for SwiftUI
Stars: ✭ 29 (-21.62%)
Mutual labels:  swiftui, swift5
BottomSheet
A sliding Sheet from the bottom of the Screen with 3 States build with SwiftUI.
Stars: ✭ 597 (+1513.51%)
Mutual labels:  swiftui, swift5
SwiftUI-Currency-Converter
Currency Converter project coded by SwiftUI and Swift5
Stars: ✭ 56 (+51.35%)
Mutual labels:  swiftui, swift5
SSSwiftUIGIFView
SSSwiftUIGIFView is a custom controller which helps to load GIF in SwiftUI.
Stars: ✭ 48 (+29.73%)
Mutual labels:  swiftui, swiftui-components
Harbour
Docker/Portainer management app for iOS
Stars: ✭ 210 (+467.57%)
Mutual labels:  swiftui, swift5
QuoteKit
A framework to use the free APIs provided by https://quotable.io
Stars: ✭ 17 (-54.05%)
Mutual labels:  swiftui, swift5
SimpleToast
SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or MacOS applications in SwiftUI. Because of the flexibility to show any content it is also possible to use the library for showing simple modals.
Stars: ✭ 131 (+254.05%)
Mutual labels:  swiftui, swift5
Windows11
💻 Windows 11 in SwiftUI.
Stars: ✭ 177 (+378.38%)
Mutual labels:  swiftui, swift5
JewelCase
This is the source code for JewelCase, a sample app demonstrating how to use SwiftUI and Firebase together. This slide deck discusses the architecture of the app: https://www.slideshare.net/peterfriese/building-swiftui-apps-with-firebase
Stars: ✭ 42 (+13.51%)
Mutual labels:  swiftui, swift5
iOS-SwiftUI-Firebase-Login-Example
Complete Sign up and Sign in Process for iOS SwiftUI - using Firebase Email and Password Authentication.
Stars: ✭ 37 (+0%)
Mutual labels:  swiftui, swift5
aprenda-swift
Uma lista de conteúdos para você aprender Swift
Stars: ✭ 429 (+1059.46%)
Mutual labels:  swiftui, swift5

Swipeable View

Logo
Check usage example »

Report Bug · Request Feature

Description

Simple "editActionsForRowAt" functionality, written on SWIFTUI Can be applied without list to every view.

Swipeable View

Installation

It requires iOS 14 and Xcode 12!

In Xcode got to File -> Swift Packages -> Add Package Dependency and paste inthe repo's url: https://github.com/mroffmix/SwipebleView

Import:

import the package in the file you would like to use it: import SwipebleView

Demo

Added an example project, with iOS target: https://github.com/mroffmix/SwipebleViewExample

Usage

Create array of actions

let left = [
    Action(title: "Note", iconName: "pencil", bgColor: .red, action: {}),
    Action(title: "Edit doc", iconName: "doc.text", bgColor: .yellow, action: {}),
    Action(title: "New doc", iconName: "doc.text.fill", bgColor: .green, action: {})
]

let right = [
    Action(title: "Note", iconName: "pencil", bgColor: .blue, action: {}),
    Action(title: "Edit doc", iconName: "doc.text", bgColor: .yellow, action: {})
]

Create SwipeableView

SwipeableView(content: {
    GroupBox {
        Text("View content")
            .frame(maxWidth: .infinity, maxHeight: .infinity)
    }
},
leftActions: left,
rightActions: right,
rounded: true
).frame(height: 90)

Swipeable View

SwipeableView in container

If you want to use your views in a container, as Table view, you have to ctreate

var container = SwManager()

And put your SwipeableViews to this container

SwipeableView(content: {

  // your view here 

},
leftActions: Example.leftActions,
rightActions: Example.rightActions,
rounded: true,
container: container)
.frame(height: 100)

Views behaviour in a container

Swipeable View

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch
  3. Commit your Changes
  4. Push to the Branch
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Ilya Mikhailov - @mix_off - [email protected]

Project Link: https://github.com/mroffmix/SwipebleView

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].