5 Commits

Author SHA1 Message Date
Alex.k 7c6d3c9652 update podspec 2016-04-14 09:38:09 +03:00
Alex f10317cef2 Merge pull request #4 from AFcgi/master
[FIX] unbalanced calls to begin/end appearance transitions issue
2016-04-14 09:36:02 +03:00
cgi 74d58700d0 [FIX] unbalanced calls to begin/end appearance transitions issue 2016-04-13 21:35:31 +02:00
Alex.k a8621a582f update podspec 2016-04-12 09:52:44 +03:00
Alex.k c615143b62 fixed log warning 2016-04-12 09:49:57 +03:00
3 changed files with 7 additions and 20 deletions
+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.4'
s.summary = 'Show list of navigationControllers'
s.license = 'MIT'
s.homepage = 'https://github.com/Ramotion/navigation-stack'
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="wMY-lE-9QR">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="wMY-lE-9QR">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
</dependencies>
<customFonts key="customFonts">
@@ -269,11 +269,7 @@
</connections>
</tableView>
<toolbarItems/>
<navigationItem key="navigationItem" id="Avt-G1-zNd">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="displaysSearchBarInNavigationBar" value="YES"/>
</userDefinedRuntimeAttributes>
</navigationItem>
<navigationItem key="navigationItem" id="Avt-G1-zNd"/>
<connections>
<outlet property="search" destination="w8B-dB-9wA" id="nwS-76-4cb"/>
<segue destination="iaH-ZQ-ay5" kind="show" identifier="push" id="HYI-Ga-o9f"/>
+3 -12
View File
@@ -72,17 +72,6 @@ extension NavigationStack {
}
// MARK: Additional helpers
extension NavigationStack {
private func popToIndex(index: Int, animated: Bool) {
let viewController = viewControllers[index]
popToViewController(viewController, animated: animated)
}
}
// MARK: UINavigationControllerDelegate
extension NavigationStack: UINavigationControllerDelegate {
@@ -126,7 +115,9 @@ extension NavigationStack: UINavigationControllerDelegate {
extension NavigationStack: CollectionStackViewControllerDelegate {
func controllerDidSelected(index index: Int) {
popToIndex(index, animated: false)
let newViewControllers = Array(viewControllers[0...index])
setViewControllers(newViewControllers, animated: false)
screens.removeRange(index..<screens.count)
}
}