- August 12, 2025
- Mins Read
Use PanGesture to dismiss view on UIViewController and UIView.
left to right | right to left | top to bottom | bottom to top |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
left to right | right to left | top to bottom | bottom to top |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
// 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
}
// UIViewController
let viewController = UIViewController()
viewController.ps.disable()
// UIView
let view = UIView()
view.ps.disable()
// UIViewController
let viewController = UIViewController()
viewController.ps.slip(animated: true)
// UIView
let view = UIView()
view.ps.slip(animated: true)
// UIViewController
extension UIViewController: PanSlipBehavior {
public var percentThreshold: CGFloat? {
return 0.2
}
}
// UIView
extension UIView: PanSlipBehavior {
public var percentThreshold: CGFloat? {
return 0.2
}
}
platform :ios, ‘8.0’
use_frameworks!
target ‘<Your Target Name>’ do
pod ‘PanSlip’
end
github “k-lpmg/PanSlip”
Recognize your user's voice elegantly without having to figure out authorization and audio engines. SwiftSpeech Examples Features Installation Getting Started ...
Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements iOS 14.0 Installation ...
SlidingRuler is a Swift package containing a SwiftUI control that acts like an linear infinite slider or a finite, more precise ...
SkeletonUI aims to bring an elegant, declarative syntax to skeleton loading animations. Get rid of loading screens or spinners and ...