k-lpmg / Panslip
Licence: mit
Use PanGesture to dismiss view on UIViewController and UIView
Stars: ✭ 93
Programming Languages
swift
15916 projects
Labels
Projects that are alternatives of or similar to Panslip
Swifty360player
iOS 360-degree video player streaming from an AVPlayer.
Stars: ✭ 118 (+26.88%)
Mutual labels: uiview, uiviewcontroller
Realm Loginkit
A generic interface for logging in to Realm Mobile Platform apps
Stars: ✭ 70 (-24.73%)
Mutual labels: uiviewcontroller
Stateview
UIViews that update themselves when your data changes, like React.
Stars: ✭ 493 (+430.11%)
Mutual labels: uiview
Leego
Declarative, configurable & highly reusable UI development as making Lego bricks.
Stars: ✭ 967 (+939.78%)
Mutual labels: uiview
Hhcustomcorner
Awesome library to customize corners of UIView and UIButton. Now you can customize each corner differently
Stars: ✭ 36 (-61.29%)
Mutual labels: uiview
Swiftuikitview
Easily use UIKit views in your SwiftUI applications. Create Xcode Previews for UIView elements
Stars: ✭ 398 (+327.96%)
Mutual labels: uiview
Swiftassetspickercontroller
A simple assets picker controller based on iOS 8 Photos framework. Supports iCloud photos and videos. It's written in Swift.
Stars: ✭ 81 (-12.9%)
Mutual labels: uiviewcontroller
Capsuleview
An easy to use drop-in view to create a beautiful card style effect with a title placeholder and body content.
Stars: ✭ 68 (-26.88%)
Mutual labels: uiview
Splarkcontroller
Custom transition between controllers. Settings controller for your iOS app.
Stars: ✭ 693 (+645.16%)
Mutual labels: uiviewcontroller
Camerabackground
Show camera layer as a background to any UIView
Stars: ✭ 57 (-38.71%)
Mutual labels: uiview
Yourview
YourView is a desktop App in MacOS based on Apple SceneKit. You may use it to view iOS App's view hierarchy 3D.
Stars: ✭ 528 (+467.74%)
Mutual labels: uiview
Uiview Positioning
Easy property-based setting of frame properties in UIView objects
Stars: ✭ 414 (+345.16%)
Mutual labels: uiview
Ppbadgeview
iOS Custom Badge, Support UIView, UITabBarItem, UIBarButtonItem ,Support Objective-C/Swift; iOS自定义Badge组件, 支持UIView, UITabBarItem, UIBarButtonItem, 支持Objective-C/Swift
Stars: ✭ 807 (+767.74%)
Mutual labels: uiview
Aaviewanimator
AAViewAnimator is a set of animations designed for UIView, UIButton, UIImageView with options in iOS, written in Swift.
Stars: ✭ 33 (-64.52%)
Mutual labels: uiview
Shapeview
A customized shape view with shadow and transparent background supported.
Stars: ✭ 90 (-3.23%)
Mutual labels: uiview
PanSlip
Use PanGesture to dismiss view on UIViewController and UIView.
Introduction
PanSlip to UIViewController
left to right | right to left | top to bottom | bottom to top |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
PanSlip to UIView
left to right | right to left | top to bottom | bottom to top |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Usage
Enable
// UIViewController
let viewController = UIViewController()
viewController.ps.enable(slipDirection: .topToBottom) {
// TODO completion when UIViewController dismissed
}
// UIView
let view = UIView()
view.ps.enable(slipDirection: .topToBottom) {
// TODO completion when UIView dismissed
}
Disable
// UIViewController
let viewController = UIViewController()
viewController.ps.disable()
// UIView
let view = UIView()
view.ps.disable()
Manual slip
// UIViewController
let viewController = UIViewController()
viewController.ps.slip(animated: true)
// UIView
let view = UIView()
view.ps.slip(animated: true)
Set percentThreshold
// UIViewController
extension UIViewController: PanSlipBehavior {
public var percentThreshold: CGFloat? {
return 0.2
}
}
// UIView
extension UIView: PanSlipBehavior {
public var percentThreshold: CGFloat? {
return 0.2
}
}
Installation
CocoaPods (iOS 8+)
platform :ios, '8.0'
use_frameworks!
target '<Your Target Name>' do
pod 'PanSlip'
end
Carthage (iOS 8+)
github "k-lpmg/PanSlip"
LICENSE
These works are available under the MIT license. See the LICENSE file for more info.
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].