Latest0.1.9
Homepagehttps://github.com/tise/SwipeableViewController
LicenseMIT
Platformsios 9.0
Authors

Version
License
Platform

Example

To test the project, clone this repo and run SwipeableViewController.xcodeproj.
Example gif

Requirements

  • iOS 9
  • Swift 4

Installation

SwipeableViewController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'SwipeableViewController'

Usage

// Make an instance of SwipeableNavigationController
let navigationController = SwipeableNavigationController(navigationBarClass: SwipeableNavigationBar.self, toolbarClass: nil)

// Make an instance of SwipeableViewController
let viewController = SwipeableViewController()

// Inject data
viewController.swipeableItems = [SwipeableItem(title: "View 1", viewController: ExampleViewController()),
                                 SwipeableItem(title: "View 2", viewController: ExampleViewController()),
                                 SwipeableItem(title: "View 3", viewController: ExampleViewController())]
viewController.selectedIndex = 1

// Set the view to the navigation controller (if you want the SwipeableViewController at the root of your navigationController)
navigationController.setViewControllers([viewController], animated: false)

And you’re good to go!

Author

Oscar Apeland, [email protected]

License

SwipeableViewController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SwipeableViewController",
    "version": "0.1.9",
    "summary": "A small UI component to build UIPageViewController-y views in your app.",
    "description": "A segmented header and a UIPageViewController all in one convenient package.",
    "homepage": "https://github.com/tise/SwipeableViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Oscar Apeland": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tise/SwipeableViewController.git",
        "tag": "0.1.9"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "SwipeableViewController/Source/*.{swift,xib}",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This