Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
orazz committed Oct 24, 2018
1 parent 1575c91 commit b69175d
Show file tree
Hide file tree
Showing 24 changed files with 27 additions and 11 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added Classes/.DS_Store
Binary file not shown.
Binary file added Demos/.DS_Store
Binary file not shown.
Binary file added Demos/Demo 1 Objc/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file added Demos/Demo 1/.DS_Store
Binary file not shown.
Binary file added Demos/Demo 1/PageMenuDemoStoryboard/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "caps.ua.edu.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -557,7 +557,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "caps.ua.edu.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class ViewController: UIViewController {
self.navigationController?.navigationBar.setBackgroundImage(UIImage(), for: UIBarMetrics.default)
self.navigationController?.navigationBar.barStyle = UIBarStyle.black
self.navigationController?.navigationBar.tintColor = UIColor.white
self.navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.orange]
self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.orange]

self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: "<-", style: UIBarButtonItemStyle.done, target: self, action: #selector(ViewController.didTapGoToLeft))
self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "->", style: UIBarButtonItemStyle.done, target: self, action: #selector(ViewController.didTapGoToRight))
self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: "<-", style: UIBarButtonItem.Style.done, target: self, action: #selector(ViewController.didTapGoToLeft))
self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "->", style: UIBarButtonItem.Style.done, target: self, action: #selector(ViewController.didTapGoToRight))

// MARK: - Scroll menu setup

Expand Down Expand Up @@ -65,21 +65,21 @@ class ViewController: UIViewController {
let rect = CGRect(origin: CGPoint(x: 0,y :0), size: CGSize(width: self.view.frame.width, height: self.view.frame.height))
pageMenu = CAPSPageMenu(viewControllers: controllerArray, frame: rect, pageMenuOptions: parameters)

self.addChildViewController(pageMenu!)
self.addChild(pageMenu!)
self.view.addSubview(pageMenu!.view)

pageMenu!.didMove(toParentViewController: self)
pageMenu!.didMove(toParent: self)
}

func didTapGoToLeft() {
@objc func didTapGoToLeft() {
let currentIndex = pageMenu!.currentPageIndex

if currentIndex > 0 {
pageMenu!.moveToPage(currentIndex - 1)
}
}

func didTapGoToRight() {
@objc func didTapGoToRight() {
let currentIndex = pageMenu!.currentPageIndex

if currentIndex < pageMenu!.controllerArray.count {
Expand Down
Binary file added Demos/Demo 2/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file added Demos/Demo 3/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file added Demos/Demo 4/.DS_Store
Binary file not shown.
Binary file added Demos/Demo 4/PageMenuDemoTabbar/.DS_Store
Binary file not shown.
Binary file added Demos/Demo 5/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Demos/Demo 7/.DS_Store
Binary file not shown.
Binary file added Demos/PageMenu/.DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions PageMenu.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Pod::Spec.new do |s|
s.name = "PageMenu"
s.version = "1.2.9"
s.version = "1.3.0"
s.summary = "A paging menu controller built from other view controllers allowing the user to switch between any kind of view controller."
s.homepage = "https://github.com/uacaps/PageMenu"
s.license = { :type => 'UA', :file => 'LICENSE' }
s.author = { "uacaps" => "[email protected]" }
s.source = { :git => "https://github.com/uacaps/PageMenu.git", :tag => '1.2.9' }
s.source = { :git => "https://github.com/uacaps/PageMenu.git", :tag => '1.3.0' }
s.platform = :ios, '8.0'
s.source_files = 'Classes/*'
s.requires_arc = true
Expand Down
Binary file added PageMenu/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

0 comments on commit b69175d

Please sign in to comment.