TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Mar 2016 |
SPMSupports SPM | ✗ |
Maintained by Cem Olcay, Omer Karisman.
Container view controller with left and right drawer controlling by pan gesture for tvOS.
inspired by the zova tvos app.
shrinks = false
shrinks = true
parallax = true
TVOSSlideViewController
and set your view controller instantce’s class to your subclass in IB.TVOSSlideViewController
s @IBInspectable
properties in interface builder without touching codesetup(contentViewController:)
function in your subclass for setup content view.Different from storyboard implementation, you can initilze TVOSSlideViewController
directly with:
public init(contentViewController: UIViewController, leftView: UIView?, rightView: UIView?)
TVOSSlideViewConroller
.amount: CGFlaot
returns the drawers visibility range between 0-1 for easier drawer animation implementation.@objc public protocol TVOSSlideViewControllerDelegate {
optional func slideViewControllerDidBeginUpdateLeftDrawer(slideViewController: TVOSSlideViewController)
optional func slideViewControllerDidBeginUpdateRightDrawer(slideViewController: TVOSSlideViewController)
optional func slideViewControllerDidUpdateLeftDrawer(slideViewController: TVOSSlideViewController, amount: CGFloat)
optional func slideViewControllerDidUpdateRightDrawer(slideViewController: TVOSSlideViewController, amount: CGFloat)
optional func slideViewControllerDidEndUpdateLeftDrawer(slideViewController: TVOSSlideViewController, amount: CGFloat)
optional func slideViewControllerDidEndUpdateRightDrawer(slideViewController: TVOSSlideViewController, amount: CGFloat)
optional func slideViewControllerDidSelectLeftDrawer(slideViewController: TVOSSlideViewController)
optional func slideViewControllerDidSelectRightDrawer(slideViewController: TVOSSlideViewController)
}
object template
to your TVOSSlideViewController
instance.TVOSSlideViewControllerShadow
is a @IBDesignable
object, you can set it properties directly from storyboardshadow
property values.