Latest 0.2.4
Homepage https://github.com/achernoprudov/PagedViewContainer
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

Simple container for paged views.

Alt Text

Installation

Cocoapods:

pod 'PagedViewContainer', '~> 0.2'

Details

Uses UIView not UIViewController.
Could be configured throught PagedViewContainerConfig.
You could disable some pages at runtime and hide it.

Usage

Check more examples in /Examples folder.

Configuration:

let config = PagedViewContainerConfig(
            pagesBackgroundColor: .white,
            menuBackgroundColor: .lightGray,
            activeItemTextColor: .black,
            inactiveItemTextColor: .gray,
            indicatorColor: .black)

Add container to your view:

let bestConfig: PagedViewContainerConfig = ...
let greatView: UIView = ...
let awesomeView: UIView = ...

let items = [
   PageItem(title: "Great view", view: greatView),
   PageItem(title: "Awesome view", view: awesomeView)
]

let pagedContainer = PagedViewContainer(config: bestConfig)
pagedContainer.setup(with: items)

yourView.addSubview(pagedContainer)

Disable/enable page:

pageContainer.set(page: 1, isEnabled: false)

Latest podspec

{
    "name": "PagedViewContainer",
    "version": "0.2.4",
    "summary": "PagedViewContainer helps to present views in pages with top bar menu to navigate through views.",
    "description": "PagedViewContainer helps to present views in pages with top bar menu to navigate through views. It not use ViewControllers, just views.",
    "homepage": "https://github.com/achernoprudov/PagedViewContainer",
    "screenshots": "https://github.com/achernoprudov/PagedViewContainer/raw/master/Demo/demo.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Andrey Chernoprudov": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/achernoprudov/PagedViewContainer.git",
        "tag": "0.2.4"
    },
    "source_files": "Source/**/*.{swift}",
    "exclude_files": "Example",
    "frameworks": "UIKit",
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This