Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Fix top and bottom for iphone X #148

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 6 additions & 26 deletions ICViewPager.podspec
Original file line number Diff line number Diff line change
@@ -1,39 +1,19 @@
Pod::Spec.new do |s|

s.name = "ICViewPager"
s.version = "1.5.1"
s.summary = "You can create sliding tabs with ViewPager."
s.version = "2.0.0"
s.summary = ""

s.description = <<-DESC
Slide through the contents or select from tabs or slide through tabs and select!

## Installation
Just copy ViewPagerController.m and ViewPagerController.h files to your project.
Or you can use CocoaPods (as this is the recommended way).
`pod 'ICViewPager'`

## Usage
Subclass ViewPagerController (as it's a `UIViewController` subclass) and implement dataSource and delegate methods in the subclass.

## Requirements
ViewPager supports minimum iOS 6 and uses ARC.
Supports both iPhone and iPad.

## Contact
[Ilter Cengiz](mailto:[email protected])
[@monsieurje](https://twitter.com/monsieurje)

## Licence
ICViewPager is MIT licensed. See the LICENSE file for more info.
DESC

s.homepage = "https://github.com/monsieurje/ICViewPager"
s.screenshots = "https://raw.githubusercontent.com/iltercengiz/ICViewPager/master/Resources/Screenshot.jpg"
s.screenshots = ""
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Ilter Cengiz" => "me@iltercengiz.info" }
s.author = { "Ilter Cengiz" => "iltercengiz@yahoo.com" }
s.platform = :ios, '6.0'
s.source = { :git => "https://github.com/monsieurje/ICViewPager.git", :tag => "1.5.1" }
s.source_files = 'ICViewPager/ICViewPager/*.{h,m}'
s.source = { :git => "https://github.com/monsieurje/ICViewPager.git", :tag => "2.0.0" }
s.source_files = 'ICViewPager/ICViewPager/**/*.swift'
s.requires_arc = true

end
359 changes: 239 additions & 120 deletions ICViewPager.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions ICViewPager/AppDelegate.h

This file was deleted.

46 changes: 0 additions & 46 deletions ICViewPager/AppDelegate.m

This file was deleted.

57 changes: 57 additions & 0 deletions ICViewPager/Application/ApplicationDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
//
// ApplicationDelegate.swift
// ICViewPager
//
// Created by Ilter Cengiz on 18/5/18.
// Copyright © 2018 Ilter Cengiz. All rights reserved.
//

import UIKit

@UIApplicationMain
class ApplicationDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDelegate {

var window: UIWindow?
private let dataSource = ExampleViewPagerControllerDataSource()

func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {



window = UIWindow(frame: UIScreen.main.bounds)

/** To test different container scenarios, enable one option. */
window?.rootViewController = viewPagerController()
// window?.rootViewController = navigationController()
// window?.rootViewController = tabBarController()

window?.makeKeyAndVisible()

return true
}

// MARK: Functions for test purposes

private func viewPagerController() -> ViewPagerController {

/** ViewPagerController configuration here. All the configuration properties are optional. */
let configuration = ViewPagerConfiguration(tabHeight: 48.0,
tabItemSizingPolicy: .fill,
tabIndicatorColor: #colorLiteral(red: 0.1764705926, green: 0.4980392158, blue: 0.7568627596, alpha: 1))

let viewPagerController = ViewPagerController(configuration: configuration)
viewPagerController.dataSource = dataSource
return viewPagerController
}

private func navigationController() -> UINavigationController {
return UINavigationController(rootViewController: viewPagerController())
}

private func tabBarController() -> UITabBarController {
let tabBarController = UITabBarController()
tabBarController.viewControllers = [navigationController()]
return tabBarController
}
}
16 changes: 0 additions & 16 deletions ICViewPager/Controller/ContentViewController.h

This file was deleted.

29 changes: 0 additions & 29 deletions ICViewPager/Controller/ContentViewController.m

This file was deleted.

15 changes: 0 additions & 15 deletions ICViewPager/Controller/HostViewController.h

This file was deleted.

146 changes: 0 additions & 146 deletions ICViewPager/Controller/HostViewController.m

This file was deleted.

Loading