Latest 0.0.8
Homepage https://github.com/brianbryant/TabPageView
License MIT
Platforms ios 10.0
Dependencies SFExtensions
Authors

CI Status
Version
License
Platform

The swift version of TabPageView in iOS

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

iPhone8iPhone8iPhoneXiPhoneX

Requirements

  • iOS 9.0+
  • Xcode 9+
  • Swift 4.0+

Communication

  • If you need help, use Stack Overflow. (Tag ‘sftabpage’)
  • If you’d like to ask a general question, use Stack Overflow.
  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Installation

CocoaPods

TabPageView is available through CocoaPods. CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To install
it, simply add the following line to your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
pod 'TabPageView'
end

Then, run the following command:

```bash
$ pod install

Manually

If you prefer not to use any of the aforementioned dependency managers, you can integrate TabPageView into your project manually.

Author

ShenZhengFang, [email protected]

Usage

import UIKit
import TabPageView

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

//        let titles = ["iPhone", "iOS", "KobeBryant", "Beautiful Girl", "UtoVR", "brianbryant", "JustinBieber", "中国", "Taylor Swift"]
        let titles = ["我的", "你的", "她的"]

        var childVCs = [UIViewController]()
        for _ in 0..<titles.count {
            let vc = UIViewController()
            vc.view.backgroundColor = UIColor.randomColor()
            childVCs.append(vc)
        }

        let style = PageStyle()
        style.isScrollEnable = false
        let tabPageView = TabPageView(frame: self.view.bounds, style: style, titles: titles, childVCs: childVCs, parentVC: self)
        tabPageView.backgroundColor = UIColor.orange

        view.addSubview(tabPageView)
        view.backgroundColor = UIColor.red
    }
}

License

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

Latest podspec

{
    "name": "TabPageView",
    "version": "0.0.8",
    "summary": "The swift version of TabPageView in iOS",
    "description": "u8be5u6846u67b6u5b9eu73b0u4e86tabu4e0au663eu793au6807u9898u3001pageu4e0au663eu793au6807u9898u5bf9u5e94u7684u63a7u5236u5668u7684u5185u5bb9uff0cu4e14u5de6u53f3u6ed1u52a8u754cu9762u65f6uff0cu6807u9898u548cu5185u5bb9u8054u52a8u6548u679cuff01",
    "homepage": "https://github.com/brianbryant/TabPageView",
    "license": "MIT",
    "authors": {
        "brianbryant": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source": {
        "git": "https://github.com/brianbryant/TabPageView.git",
        "tag": "0.0.8"
    },
    "source_files": [
        "Sources",
        "Sources/**/*.{swift}"
    ],
    "exclude_files": "Sources/Exclude",
    "dependencies": {
        "SFExtensions": []
    }
}

Pin It on Pinterest

Share This