Skip to content

schwindt/SwipeableMenuView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SwipeableMenuView

Swipe to delete for UIStackViews

This looks/works similar like the normal UITableView swipe to delete behavior.

In the example below is a UIStackView inside of a UIScrollView. The stackview has a bunch of SwipeableMenuViews. So its possible to scroll vertical and also to swipe the SwipeableMenuViews horizontal.

example

Its also possible to have two buttons instead of one. In this case the view snap to a fix position after you breakt through a defined barrier point.

example2

How to use:

let deleteImage = UIImage(named: "delete")!
let rightFirstButtonConfig = SlideMenuViewButtonConfig(backgroundColor: .darkRed, instantFireBackgroundColor: .red, image: deleteImage) {
  // Do some magic here
}
let rightSlideMenuConfig = SlideMenuViewButtonWrapperConfig(buttonMode: .one(rightFirstButtonConfig))
SlideMenuView(rightMenuConfig: rightSlideMenuConfig, contentView: YOUR_CONTENT_VIEW)

About

Swipe to delete for UIStackViews

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages