16 Commits

Author SHA1 Message Date
Alex 5238c1c342 Update Navigation-stack.podspec 2016-04-12 10:06:00 +03:00
Alex 8049487784 Merge pull request #3 from AFcgi/develop
Add backgroundView property for background image support
2016-04-12 09:32:46 +03:00
cgi 738e47c739 [ADD] background view property
[FIX] delegate issue
2016-04-11 23:08:56 +02:00
cgi 28d675b1ee [CHANGE] inspectable are public 2016-04-11 08:57:17 +02:00
Alex eba81a42ac Update README.md 2016-03-11 16:53:48 +03:00
Alex.k 7fbb5c1e2d Merge branch 'master' of https://github.com/Ramotion/navigation-stack 2016-03-11 16:47:34 +03:00
Alex.k 580b63452d added contributing file 2016-03-11 16:47:29 +03:00
Alex aa4aa7a6be Update README.md 2016-03-11 16:37:52 +03:00
Alex e2ce8216ac Update README.md 2016-03-11 16:36:36 +03:00
Alex 3d593a2219 Update README.md 2016-03-11 16:32:02 +03:00
Alex.k a42ee4bed4 Merge branch 'master' of https://github.com/Ramotion/navigation-stack 2016-03-11 16:29:39 +03:00
Alex.k e4f1a6612e Changed header 2016-03-11 16:29:34 +03:00
Alex c51ea3abef Update README.md 2016-03-11 16:18:10 +03:00
Alex.k 118dfcbd46 Merge branch 'master' of https://github.com/Ramotion/navigation-stack 2016-03-11 16:12:10 +03:00
Alex.k 0fdbc891c1 added gif 2016-03-11 16:12:02 +03:00
Alex 7220458d20 Update README.md 2016-03-09 10:53:20 +03:00
7 changed files with 55 additions and 12 deletions
+33
View File
@@ -0,0 +1,33 @@
# Contributing to a Project
Now that youve found the material for understanding the project, here is how you can take action.
### Create an Issue
If you find a bug in a project youre using (and you dont know how to fix it), have trouble following the documentation or have a question about the project create an issue! Theres nothing to it and whatever issue youre having, youre likely not the only one, so others will find your issue helpful, too. For more information on how issues work, check out our Issues guide.
#### Issues Pro Tips
Check existing issues for your issue. Duplicating an issue is slower for both parties so search through open and closed issues to see if what youre running into has been addressed already.
Be clear about what your problem is: what was the expected outcome, what happened instead? Detail how someone else can recreate the problem.
Link to demos recreating the problem on things like JSFiddle or CodePen.
Include system details like what the browser, library or operating system youre using and its version.
Paste error output or logs in your issue or in a Gist. If pasting them in the issue, wrap it in three backticks: ``` so that it renders nicely.
### Pull Request
If youre able to patch the bug or add the feature yourself fantastic, make a pull request with the code! Be sure youve read any documents on contributing, understand the license and have signed a CLA if required. Once youve submitted a pull request the maintainer(s) can compare your branch to the existing one and decide whether or not to incorporate (pull in) your changes.
#### Pull Request Pro Tips
Fork the repository and clone it locally. Connect your local to the original upstream repository by adding it as a remote. Pull in changes from upstream often so that you stay up to date so that when you submit your pull request, merge conflicts will be less likely. See more detailed instructions here.
Create a branch for your edits.
Be clear about what problem is occurring and how someone can recreate that problem or why your feature will help. Then be equally as clear about the steps you took to make your changes.
Its best to test. Run your changes against any existing tests if they exist and create new ones when needed. Whether tests exist or not, make sure your changes dont break the existing project.
Include screenshots of the before and after if your changes include differences in HTML/CSS. Drag and drop the images into the body of your pull request.
Contribute in the style of the project to the best of your abilities. This may mean using indents, semi colons or comments differently than you would in your own repository, but makes it easier for the maintainer to merge, others to understand and maintain in the future.
#### Open Pull Requests
Once youve opened a pull request a discussion will start around your proposed changes. Other contributors and users may chime in, but ultimately the decision is made by the maintainer(s). You may be asked to make some changes to your pull request, if so, add more commits to your branch and push them theyll automatically go into the existing pull request.
If your pull request is merged great! If it is not, no sweat, it may not be what the project maintainer had in mind, or they were already working on it. This happens, so our recommendation is to take any feedback youve received and go forth and pull request again or create your own open source project.
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 MiB

+1 -1
View File
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'Navigation-stack'
s.version = '0.0.2'
s.version = '0.0.3'
s.summary = 'Show list of navigationControllers'
s.license = 'MIT'
s.homepage = 'https://github.com/Ramotion/navigation-stack'
+10 -3
View File
@@ -1,10 +1,17 @@
![header](./header.png)
# navigation-stack
[![Twitter](https://img.shields.io/badge/Twitter-@Ramotion-blue.svg?style=flat)](http://twitter.com/Ramotion)
[![CocoaPods](https://img.shields.io/cocoapods/p/Navigation-stack.svg)](https://cocoapods.org/pods/Navigation-stack)
[![CocoaPods](https://img.shields.io/cocoapods/v/Navigation-stack.svg)](http://cocoapods.org/pods/Navigation-stack)
[![Travis](https://img.shields.io/travis/Ramotion/navigation-stack.svg)](https://travis-ci.org/Ramotion/navigation-stack)
[![codebeat badge](https://codebeat.co/badges/6f67da5d-c416-4bac-9fb7-c2dc938feedc)](https://codebeat.co/projects/github-com-ramotion-navigation-stack)
[![codebeat badge](https://codebeat.co/badges/c322a039-b06b-46d9-bf40-e48cf0365b97)](https://codebeat.co/projects/github-com-ramotion-navigation-stack)
[shot on dribbble](https://dribbble.com/shots/2583175-Navigation-Stack-Swift-Open-Source):
![Animation](Navigation-Stack.gif)
The [iPhone mockup](https://store.ramotion.com/product/iphone-6-mockups?utm_source=gthb&utm_medium=special&utm_campaign=navigation-stack) available [here](https://store.ramotion.com/product/iphone-6-mockups?utm_source=gthb&utm_medium=special&utm_campaign=navigation-stack).
## Requirements
- iOS 9.0+
@@ -16,7 +23,7 @@ Just add the Source folder to your project.
or use [CocoaPods](https://cocoapods.org) with Podfile:
``` ruby
pod 'Navigation-stack', '~> 0.0.1'
pod 'Navigation-stack', '~> 0.0.2'
```
## Usage
@@ -56,7 +63,7 @@ See [LICENSE](./LICENSE) for details.
## About
The project maintained by [app development agency](https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=navigation-stack) [Ramotion Inc.](https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=foolding-cell)
The project maintained by [app development agency](https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=navigation-stack) [Ramotion Inc.](https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=navigation-stack)
See our other [open-source projects](https://github.com/ramotion) or [hire](https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=navigation-stack) us to design, develop, and grow your product.
[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=https://github.com/ramotion/navigation-stack)
@@ -43,7 +43,8 @@ class CollectionStackViewController: UICollectionViewController {
overlay: Float,
scaleRatio: Float,
scaleValue: Float,
bgColor: UIColor,
bgColor: UIColor = UIColor.clearColor(),
bgView: UIView? = nil,
decelerationRate:CGFloat) {
self.screens = images
@@ -55,6 +56,7 @@ class CollectionStackViewController: UICollectionViewController {
if let collectionView = self.collectionView {
collectionView.backgroundColor = bgColor
collectionView.backgroundView = bgView
collectionView.decelerationRate = decelerationRate
}
}
@@ -119,8 +121,6 @@ extension CollectionStackViewController {
}
override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
delegate?.controllerDidSelected(index: indexPath.row)
guard let currentCell = collectionView.cellForItemAtIndexPath(indexPath) else {
return
}
@@ -152,6 +152,7 @@ extension CollectionStackViewController {
}) { (success) -> Void in
dispatch_async(dispatch_get_main_queue(), { () -> Void in
self.delegate?.controllerDidSelected(index: indexPath.row)
self.dismissViewControllerAnimated(false, completion: nil)
})
}
+7 -5
View File
@@ -29,13 +29,14 @@ import UIKit
public class NavigationStack: UINavigationController {
@IBInspectable var overlay: Float = 0.8
@IBInspectable var scaleRatio: Float = 14.0
@IBInspectable var scaleValue: Float = 0.99
@IBInspectable var decelerationRate: CGFloat = UIScrollViewDecelerationRateNormal
@IBInspectable public var overlay: Float = 0.8
@IBInspectable public var scaleRatio: Float = 14.0
@IBInspectable public var scaleValue: Float = 0.99
@IBInspectable public var decelerationRate: CGFloat = UIScrollViewDecelerationRateNormal
@IBInspectable var bgColor: UIColor = .blackColor()
@IBInspectable public var bgColor: UIColor = .blackColor()
public var bgView: UIView? = nil
private var screens = [UIImage]()
weak public var stackDelegate: UINavigationControllerDelegate? // use this instead delegate
@@ -63,6 +64,7 @@ extension NavigationStack {
scaleRatio: scaleRatio,
scaleValue: scaleValue,
bgColor: bgColor,
bgView: bgView,
decelerationRate: decelerationRate)
presentViewController(collectioView, animated: false, completion: nil)
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB