Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 342189b6e0 | |||
| 5eb66f6fb5 | |||
| 995c5a5513 | |||
| 6904cf96a5 | |||
| 5dc7510804 | |||
| b42aa63728 | |||
| bf1ee34892 | |||
| 4bab50f2ec | |||
| cdbfa29c11 | |||
| 563097f845 |
Binary file not shown.
|
Before Width: | Height: | Size: 5.9 MiB |
@@ -286,18 +286,18 @@
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastSwiftUpdateCheck = 0720;
|
||||
LastUpgradeCheck = 0900;
|
||||
LastUpgradeCheck = 1000;
|
||||
ORGANIZATIONNAME = "Alex K.";
|
||||
TargetAttributes = {
|
||||
84368B3B1CFEDDB1007C4278 = {
|
||||
CreatedOnToolsVersion = 7.3.1;
|
||||
DevelopmentTeam = 34MUF9YXTA;
|
||||
LastSwiftMigration = 0900;
|
||||
LastSwiftMigration = 1000;
|
||||
};
|
||||
8444B0EB1C80238500B53B4E = {
|
||||
CreatedOnToolsVersion = 7.2.1;
|
||||
DevelopmentTeam = 34MUF9YXTA;
|
||||
LastSwiftMigration = 0900;
|
||||
LastSwiftMigration = 1000;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -419,8 +419,7 @@
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ramotion.NavigationStack;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SKIP_INSTALL = YES;
|
||||
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
|
||||
SWIFT_VERSION = 4.0;
|
||||
SWIFT_VERSION = 4.2;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
VERSION_INFO_PREFIX = "";
|
||||
@@ -445,8 +444,7 @@
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ramotion.NavigationStack;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SKIP_INSTALL = YES;
|
||||
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
|
||||
SWIFT_VERSION = 4.0;
|
||||
SWIFT_VERSION = 4.2;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
VERSION_INFO_PREFIX = "";
|
||||
@@ -465,12 +463,14 @@
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
@@ -517,12 +517,14 @@
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
@@ -562,8 +564,7 @@
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ramotion.NavigationStackDemo;
|
||||
PRODUCT_NAME = "Navigation Stack";
|
||||
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
|
||||
SWIFT_VERSION = 4.0;
|
||||
SWIFT_VERSION = 4.2;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -578,8 +579,7 @@
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.ramotion.NavigationStackDemo;
|
||||
PRODUCT_NAME = "Navigation Stack";
|
||||
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
|
||||
SWIFT_VERSION = 4.0;
|
||||
SWIFT_VERSION = 4.2;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0900"
|
||||
LastUpgradeVersion = "1000"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
@@ -26,7 +26,6 @@
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
language = ""
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<Testables>
|
||||
</Testables>
|
||||
@@ -37,7 +36,6 @@
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
language = ""
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
|
||||
@@ -29,13 +29,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
var window: UIWindow?
|
||||
|
||||
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
|
||||
// Override point for customization after application launch.
|
||||
func application(_ : UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
||||
|
||||
UIApplication.shared.statusBarStyle = .lightContent
|
||||
|
||||
UINavigationBar.appearance().titleTextAttributes = [
|
||||
NSAttributedStringKey.foregroundColor: UIColor.white,
|
||||
NSAttributedStringKey.font: UIFont(name: "OpenSans-Semibold", size: 16)!,
|
||||
NSAttributedString.Key.foregroundColor: UIColor.white,
|
||||
NSAttributedString.Key.font: UIFont(name: "OpenSans-Semibold", size: 16)!,
|
||||
]
|
||||
|
||||
return true
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
[](https://ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=navigation-stack-logo)
|
||||

|
||||
<img src="https://github.com/Ramotion/navigation-stack/blob/master/navigation-stack.gif" width="600" height="450" />
|
||||
<br><br/>
|
||||
# navigation-stack
|
||||
[](http://twitter.com/Ramotion)
|
||||
[](https://cocoapods.org/pods/Navigation-stack)
|
||||
@@ -8,6 +9,7 @@
|
||||
[](https://travis-ci.org/Ramotion/navigation-stack)
|
||||
[](https://codebeat.co/projects/github-com-ramotion-navigation-stack)
|
||||
[](https://github.com/Ramotion/navigation-stack)
|
||||
[](https://paypal.me/Ramotion)
|
||||
|
||||
## About
|
||||
This project is maintained by Ramotion, Inc.<br>
|
||||
@@ -16,10 +18,10 @@ We specialize in the designing and coding of custom UI for Mobile Apps and Websi
|
||||
**Looking for developers for your project?**<br>
|
||||
This project is maintained by Ramotion, Inc. We specialize in the designing and coding of custom UI for Mobile Apps and Websites.
|
||||
|
||||
<a href="https://ramotion.com/?utm_source=gthb&utm_medium=special&utm_campaign=navigation-stack-contact-us/#Get_in_Touch">
|
||||
<a href="mailto:alex.a@ramotion.com?subject=Project%20inquiry%20from%20Github">
|
||||
<img src="https://github.com/ramotion/gliding-collection/raw/master/contact_our_team@2x.png" width="187" height="34"></a>
|
||||
|
||||
The [iPhone mockup](https://store.ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=paper-onboarding) available [here](https://store.ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=paper-onboarding).
|
||||
The [iPhone mockup](https://store.ramotion.com/product/iphone-x-clay-mockups?utm_source=gthb&utm_medium=special&utm_campaign=navigation-stack) available [here](https://store.ramotion.com?utm_source=gthb&utm_medium=special&utm_campaign=navigation-stack).
|
||||
|
||||
## Try this UI control in action
|
||||
|
||||
@@ -75,6 +77,9 @@ extension YourViewController: UIGestureRecognizerDelegate {
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
This library is a part of a <a href="https://github.com/Ramotion/swift-ui-animation-components-and-libraries"><b>selection of our best UI open-source projects.</b></a>
|
||||
|
||||
## License
|
||||
|
||||
Navigation-stack is released under the MIT license.
|
||||
@@ -85,11 +90,11 @@ Try this UI component and more like this in our iOS app. Contact us if intereste
|
||||
|
||||
<a href="https://itunes.apple.com/app/apple-store/id1182360240?pt=550053&ct=navigation-stack&mt=8" >
|
||||
<img src="https://github.com/ramotion/gliding-collection/raw/master/app_store@2x.png" width="117" height="34"></a>
|
||||
<a href="https://ramotion.com/?utm_source=gthb&utm_medium=special&utm_campaign=navigation-stack-contact-us/#Get_in_Touch">
|
||||
<a href="mailto:alex.a@ramotion.com?subject=Project%20inquiry%20from%20Github">
|
||||
<img src="https://github.com/ramotion/gliding-collection/raw/master/contact_our_team@2x.png" width="187" height="34"></a>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
Follow us for the latest updates<br>
|
||||
[](https://twitter.com/intent/tweet?text=https://github.com/ramotion/navigation-stack)
|
||||
[](https://twitter.com/ramotion)
|
||||
<a href="https://goo.gl/rPFpid" >
|
||||
<img src="https://i.imgur.com/ziSqeSo.png/" width="156" height="28"></a>
|
||||
|
||||
@@ -66,7 +66,7 @@ extension CollectionViewStackCell {
|
||||
return imageView
|
||||
}
|
||||
|
||||
fileprivate func createConstraint(_ item: UIImageView, toItem: UIView, attribute: NSLayoutAttribute) -> NSLayoutConstraint {
|
||||
fileprivate func createConstraint(_ item: UIImageView, toItem: UIView, attribute: NSLayoutConstraint.Attribute) -> NSLayoutConstraint {
|
||||
return NSLayoutConstraint(item: item,
|
||||
attribute: attribute,
|
||||
relatedBy: .equal,
|
||||
|
||||
@@ -65,7 +65,7 @@ class CollectionStackViewController: UICollectionViewController {
|
||||
if let collectionView = self.collectionView {
|
||||
collectionView.backgroundColor = bgColor
|
||||
collectionView.backgroundView = bgView
|
||||
collectionView.decelerationRate = decelerationRate
|
||||
collectionView.decelerationRate = UIScrollView.DecelerationRate(rawValue: decelerationRate)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ extension CollectionStackViewController: UICollectionViewDelegateFlowLayout {
|
||||
|
||||
extension CollectionStackViewController {
|
||||
|
||||
fileprivate func scrolltoIndex(_ index: Int, animated: Bool, position: UICollectionViewScrollPosition) {
|
||||
fileprivate func scrolltoIndex(_ index: Int, animated: Bool, position: UICollectionView.ScrollPosition) {
|
||||
let indexPath = IndexPath(item: index, section: 0)
|
||||
collectionView?.scrollToItem(at: indexPath, at: position, animated: animated)
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ extension CollectionViewStackFlowLayout {
|
||||
items.enumerateObjects({ (object, _, _) -> Void in
|
||||
let attributes = object as! UICollectionViewLayoutAttributes
|
||||
|
||||
if attributes.representedElementKind == UICollectionElementKindSectionHeader {
|
||||
if attributes.representedElementKind == UICollectionView.elementKindSectionHeader {
|
||||
headerAttributes = attributes
|
||||
} else {
|
||||
self.updateCellAttributes(attributes, headerAttributes: headerAttributes)
|
||||
|
||||
@@ -32,7 +32,7 @@ open class NavigationStack: UINavigationController {
|
||||
var scaleValue: Float = 0.99
|
||||
|
||||
/// A floating-point value that determines the rate of deceleration after the user lifts their finger.
|
||||
@IBInspectable open var decelerationRate: CGFloat = UIScrollViewDecelerationRateNormal
|
||||
@IBInspectable open var decelerationRate: CGFloat = UIScrollView.DecelerationRate.normal.rawValue
|
||||
|
||||
/// The color to use for the background of the lists of UIViewcontrollers.
|
||||
@IBInspectable open var bgColor: UIColor = .black
|
||||
@@ -140,7 +140,7 @@ extension NavigationStack: UINavigationControllerDelegate {
|
||||
return stackDelegate?.navigationController?(navigationController, interactionControllerFor: animationController)
|
||||
}
|
||||
|
||||
public func navigationController(_ navigationController: UINavigationController, animationControllerFor operation: UINavigationControllerOperation, from fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
|
||||
public func navigationController(_ navigationController: UINavigationController, animationControllerFor operation: UINavigationController.Operation, from fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
|
||||
return stackDelegate?.navigationController?(navigationController, animationControllerFor: operation, from: fromVC, to: toVC)
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 11 MiB |
Reference in New Issue
Block a user