Compare commits

...

60 Commits

Author SHA1 Message Date
Alexey Savin bba3fcecc4 Contacted, expanded properties exposed 2016-04-19 14:13:57 +03:00
Alexey Savin 31dbd543ad Added expand completion 2016-03-16 20:17:20 +03:00
Alexey Savin b7beb2f8c8 Hidden status bar height fix 2016-03-16 20:01:16 +03:00
Alexey Savin e2bce07b36 Minor fix 2016-03-16 19:55:49 +03:00
Alexey Savin a24bd2f297 Minor fix 2016-03-16 19:50:10 +03:00
Alexey Savin 1bf3376157 Status bar additional handling 2016-03-16 19:39:45 +03:00
Alexey Savin 3ef37fc24f Minor fix 2016-03-16 17:05:23 +03:00
Alexey Savin 3ad2556f55 Expand method
Delegate fix
2016-03-16 16:54:20 +03:00
Maz Jaleel 537bce6c30 Merge pull request #122 from szweier/fix-refresh
Fix refresh
2016-02-29 23:07:44 +09:00
Maz Jaleel 6cd994afa7 Merge pull request #123 from szweier/fix-navigation-controller-is-jumping-unexpectedly
Fix constraints to make demo work correctly
2016-02-24 09:05:24 +09:00
Steven Zweier a117fc058f fix default values 2016-02-23 11:31:32 -05:00
Steven Zweier 39302de4ba Fix constraints to make demo work correctly 2016-02-23 11:21:56 -05:00
Steven Zweier 48b0eafe5f add line break 2016-02-23 09:52:50 -05:00
Steven Zweier 3a138c4207 add line break 2016-02-23 09:51:32 -05:00
Steven Zweier 58a2d1b31c adjust alignment 2016-02-23 09:50:29 -05:00
Steven Zweier c41c5bd3ad fix refresh issue 2016-02-23 09:49:40 -05:00
Maz Jaleel d16780e8a5 Merge pull request #121 from szweier/set-specific-viewcontroller-on-manager
Allow specific view controller to be set if needed
2016-02-23 22:41:31 +09:00
Steven Zweier 15bd513774 Fix refresh control 2016-02-22 16:33:09 -05:00
Steven Zweier 192075bf3d Allow specific view controller to be set if needed 2016-02-22 14:02:29 -05:00
Maz Jaleel b0eacc80bf Merge pull request #118 from gfzabarino/feature/queryForAssociationToViewController
Added method to query if a TLYShyNavBarManager instance is associated with a UIViewController without triggering its creation
2016-01-30 22:43:10 +09:00
Maz Jaleel a1c57da65f Merge pull request #117 from gfzabarino/master
Scroll view started with wrong content offset on some occasions
2016-01-30 20:14:56 +09:00
Gian Franco Zabarino 47f9b081bf - Added method to query for the existence of an associated TLYShyNavBarManager instance without triggering its creation and association. 2016-01-29 23:17:28 -03:00
Maz Jaleel fb95964272 Merge pull request #114 from bbreier/master
Fix issue #113
2016-01-30 10:22:07 +09:00
Gian Franco Zabarino b8b32c597f Merge branch 'upstreamMaster' 2016-01-29 22:04:59 -03:00
Gian Franco Zabarino e1fba0efa7 - Fixed bug in which the bounds / contentOffset of the scroll view wasn't being updated on some occasions. 2016-01-29 22:04:14 -03:00
Benjamin Breier 2bca45f16d Fix bug that could alter frame of UICollectionViews on first hiding of nav bar 2016-01-15 17:21:14 -08:00
Maz Jaleel fa4b25e4bf Merge pull request #106 from gfzabarino/master
Added delegate to TLYShyNavBarManager
2015-12-20 23:01:05 -08:00
Gian Franco Zabarino fc2108e238 Changed typeof statement to __typeof. 2015-12-21 01:28:59 -03:00
Gian Franco Zabarino 71f03b9195 Added delegate to latest code in the original repository. 2015-12-11 18:13:43 -03:00
Gian Franco Zabarino 53cf176916 Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	TLYShyNavBar/TLYShyNavBarManager.h
#	TLYShyNavBar/TLYShyNavBarManager.m
2015-12-11 18:08:05 -03:00
Maz Jaleel 7e52e3a427 Update README.md
better shield link
2015-11-22 23:07:41 -08:00
Maz Jaleel a4d91870aa Update README.md 2015-11-19 02:20:42 -08:00
Maz Jaleel 07ac754965 Update README.md 2015-11-19 02:17:54 -08:00
Maz Jaleel 70a1ff03c6 Merge pull request #98 from bradleyayers/master
Add support for carthage
2015-11-19 02:17:00 -08:00
Bradley Ayers 8f40de0fc0 Update README to include Carthage instructions 2015-11-19 21:10:52 +11:00
Bradley Ayers 03427bccbe #73 Share the default TLYShyNavBar scheme so it is built by carthage. 2015-11-19 21:02:38 +11:00
Bradley Ayers 4484d0747a Add an xcodeproj for #73. 2015-11-19 20:58:03 +11:00
Maz Jaleel 49f88bcf46 update pod 2015-11-14 19:36:48 -08:00
Maz Jaleel 57a2be058b Merge pull request #97 from telly/develop
v1.0
2015-11-14 19:35:37 -08:00
Maz Jaleel da990c1b7f v1.0 prova 2015-11-14 19:17:04 -08:00
Maz Jaleel e7dcca4d20 enhance demo a bit 2015-11-14 19:15:27 -08:00
Maz Jaleel 679d5caef1 Minor fixes for different setups 2015-11-14 19:14:56 -08:00
Maz Jaleel ab74d0360c import and code cleanup 2015-11-14 18:37:50 -08:00
Maz Jaleel 879898fbb4 cleanup swift demo 2015-11-14 18:35:46 -08:00
Maz Jaleel 87cbb39008 That covers all the features! 2015-11-14 16:33:05 -08:00
Maz Jaleel b676a02026 Semi-working opaque bars, table view header 2015-11-13 23:52:59 -08:00
Maz Jaleel 06195c9c16 Cleanups for v1.0.0!
Simplify code and reorganize project
2015-11-13 19:52:42 -08:00
Maz Jaleel 630032648b Added TableView in demo. Time to fix it! 2015-11-13 18:23:38 -08:00
Maz Jaleel 97ef8b6276 Fixed demo on larger iPhone sizes
Fixed all constraints issues
2015-11-13 18:01:42 -08:00
Maz Jaleel 61f48e5ef1 Merge pull request #94 from DagAgren/master
FIx include paths in TLYShyNavBarManager
2015-10-28 08:59:37 -07:00
DagAgren 96725b437e FIx include paths in TLYShyNavBarManager 2015-10-28 11:48:26 +02:00
Maz Jaleel 29d42955e7 Because @jimmar thinks himself a spelling cop 2015-10-22 23:02:08 -07:00
Mazyad Alabduljaleel 5aa9c03687 update docs 2015-10-20 20:46:14 -07:00
Mazyad Alabduljaleel 77b754cc3e release v0.10.1 2015-10-20 20:08:04 -07:00
Mazyad Alabduljaleel baffc6fe0d fixes #93 .. As far as I can tell 2015-10-20 19:54:29 -07:00
Mazyad Alabduljaleel ff67d2b0a0 Added collectionView demo
Has the problem described in #93
2015-10-20 19:41:36 -07:00
Maz Jaleel fb81a41a57 Create CHANGELOG.md 2015-10-10 18:49:11 -07:00
Gian Franco Zabarino 983f632b76 Added delegate method to notify the client when the navigation bar became fully contracted. 2015-05-05 16:59:57 -03:00
Gian Franco Zabarino 2e065ac823 Added delegate to have the client notified when a contraction or expansion finishes animating. 2015-05-05 16:41:04 -03:00
Gian Franco Zabarino d975745250 Added scrollIndicatorInsets adjust when scrolling. 2015-05-04 20:43:44 -03:00
66 changed files with 1902 additions and 541 deletions

33
CHANGELOG.md Normal file
View File

@ -0,0 +1,33 @@
## v0.10.1
#### Fixes
+ Hot fix an issue with UIViewControllers that have a UIScrollView subclass as their view property (i.e. collectionView, tableView, ...) that caused shyNavBar to be stubbornNavBar, refusing to contract.
## v0.10.0
#### Enhancements
+ New approach to calculate extension and navigation bar offsets.<br />
Initially, we externally injected the calculation through blocks. The calculations depended on layout guide, and other weird stuff. The new approach simply calculates the offset based on the parent: status bar -> navigation bar -> extension view.
+ Added support for sticky navigation bar
## v0.9.15
#### Enhancements
+ Added support for fading the entire navigation bar
+ Added modal support by checking navigation bar overlap with status bar
+ Added visual tests in the demo to see all the features in action
#### Fixes
+ Fixed an issue with scrolling to top functionality
#### Deprecations
+ Deprecated the fading booleans in favour of a new enum.

106
README.md
View File

@ -1,10 +1,13 @@
# TLYShyNavBar
![TLYShyNavBar banner](http://imgur.com/UVxJLxu.png)<br />
__v1.0, Finally! With better code design, and fully featured!__
-----
![Pod Version](https://cocoapod-badges.herokuapp.com/v/TLYShyNavBar/badge.png)
![Pod Version](https://img.shields.io/cocoapods/v/TLYShyNavBar.svg)
![Pod License](https://img.shields.io/badge/license-MIT-blue.svg)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
This component helps you mimick the navigation bar auto scrolling that you see in the facebook, instagram and other apps. Not only that, but with the ability to add an additional extension that scrolls along as well! It is designed for **ease of use**, and is battle tested in our own [Telly app](https://itunes.apple.com/us/app/telly/id524552885?mt=8)<sup>[1]</sup>!
This component helps you mimic the navigation bar auto scrolling that you see in the Facebook, Instagram, 9gag (which uses this!) and other apps. Not only that, but with the ability to add an additional extension that scrolls along as well! It is designed for **ease of use**, and is battle tested in our own [Telly app](https://itunes.apple.com/us/app/telly/id524552885?mt=8)<sup>[1]</sup>!
![Battle Tested!!](resources/battle-tested-demo.gif)
@ -19,23 +22,24 @@ This component helps you mimick the navigation bar auto scrolling that you see i
+ **[A Deeper Look](#a-deeper-look)**: You're invensted in this now and want to make the most out of it.
+ **[How it Works](#how-it-works)**: The deep stuff...
+ **[Remarks](#remarks)**: Read this before losing all hope.
+ **[Contributors](#contributors)**: Developers that donated their valuable time.
+ **[Contributing](#contributing)**: Together, making iOS better.
+ **[Author](#author)**: Watashi-da!
+ **[Similar Projects](#similar-projects)**: Similar projects that influenced the project in some way.
## Features
| Feature | Demo |
|---------|---------------------------------------------------------------------------------------------------------
| Optional extension view to the `UINavigationBar`! | ![](resources/ShyNavBar-1.gif) |
| Auto expand if below threshold | ![](resources/ShyNavBar-2.gif) |
| Auto contract if below threshold | ![](resources/ShyNavBar-3.gif) |
| Very responsive, resilient and robust | ![](resources/ShyNavBar-4.gif) |
| Adjustable expansion resistance | ![](resources/ShyNavBar-5.gif) |
| Plays well with `pushViewController` | ![](resources/ShyNavBar-6.gif) |
| Sticky extension view (Thanks @yukaliao !) | ![](resources/ShyNavBar-7.gif) |
| Sticky navigation bar (Thanks [@TiagoVeloso](https://github.com/TiagoVeloso)!) | ![](resources/ShyNavBar-9.gif) |
| Fade the entire navbar (Thanks [__@longsview__](https://github.com/longsview)!) | ![](resources/ShyNavBar-8.gif) |
|---|---|
| Scroll a `UINavigationBar` with an extension view | ![](resources/basic-feature.gif) |
| Support opaque and translucent `UINavigationBar`s | ![](resources/opaque-supported.gif) |
| Fully featured, with animations and variable resistance | ![](resources/fully-featured.gif) |
| Responsive, resilient and robust | ![](resources/robust.gif) |
| Supports `UITableView`, with headers, too! | ![](resources/tableview.gif) |
| `UICollectionView` is more than welcome | ![](resources/collectionView.gif) |
| In-call status bar? No problem! | ![](resources/in-app-call.gif) |
| Sticky extension view (Thanks @yukaliao !) | ![](resources/sticky-extension.gif) |
| Sticky navigation bar (Thanks [@TiagoVeloso](https://github.com/TiagoVeloso)!) | ![](resources/sticky-navbar.gif) |
| Fade the entire navbar (Thanks [__@longsview__](https://github.com/longsview)!) | ![](resources/fade-navbar.gif) |
You can test some of these features in the Objective-C demo:
@ -48,6 +52,9 @@ You can test some of these features in the Objective-C demo:
Add the following to you [Podfile](http://guides.cocoapods.org/using/the-podfile.html) `pod 'TLYShyNavBar'`<br />
Import the header `#import <TLYShyNavBar/TLYShyNavBarManager.h>`
+ Using [Carthage](https://github.com/Carthage/Carthage) (Thanks [@bradleyayers](https://github.com/bradleyayers)!):<br />
Add the following to your [Cartfile](https://github.com/Carthage/Carthage/blob/master/Documentation/Artifacts.md) `github "telly/TLYShyNavBar"`<br />
Import the header `#import <TLYShyNavBar/TLYShyNavBar.h>`
+ Using Submodules:<br />
Download the project/git submodules, and drag the `TLYShyNavBar` folder to your project. <br />
@ -60,34 +67,20 @@ You can test some of these features in the Objective-C demo:
self.shyNavBarManager.scrollView = self.scrollView;
```
**IMPORTANT!!** If you are assigning a delegate to your scrollView, do that **before** assigning the scrollView to the `TLYShyNavBarManager`! To learn more, [see below](#how-it-works).
**IMPORTANT NOTES!!**
1. Don't use with `UITableViewController`. Add a `UITableView` as a subview of `UIViewController` instead.
2. If you are assigning a delegate to your scrollView, do that **before** assigning the scrollView to the `TLYShyNavBarManager`! To learn more, [see below](#how-it-works).
### Using TLYShyNavBar in Swift
If you are building apps in Swift and targeting apps to iOS7 Apples [hidesBarsOnSwipe](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UINavigationController_Class/#//apple_ref/occ/instp/UINavigationController/hidesBarsOnSwipe) will not work because it is in an iOS 8 feature. As an alternative you can use TLYShyNavBar component in lieu of Apples feature.
To use this component in Swift
Nothing special is needed, really. Just make sure you have a [Bridging Header](http://stackoverflow.com/questions/31716413/xcode-not-automatically-creating-bridging-header) setup, and import:
1. Clone this git repository locally: `git clone https://github.com/telly/TLYShyNavBar.git`
2. Copy the `TLYShyNavBar` directory into your Swift project. <br />![](resources/Swift-project.png)
3. Create a new header file called `Bridging-Header.h` and add the headers from `TLYShyNavBar` folder.[see headers below](#bridge-headers).
4. Add the bridging header file to the project's build settings. Search `Bridging Header` in `Build Settings` and add `Bridging-Header.h`. <br />![](resources/Bridged-Header.png)
Now your project is setup to use the TLYShyNavBar component. Next all you need to do is set the scrollview property in your UIViewController like it was an Objective-c project.
```
/* In your UIViewController viewDidLoad or after creating the scroll view. */
self.shyNavBarManager.scrollView = self.scrollView;
```
#### Bridge Headers
```
```objc
#import "TLYShyNavBarManager.h"
#import "TLYShyViewController.h"
#import "TLYDelegateProxy.h"
#import "NSObject+TLYSwizzlingHelpers.h"
#import "UIViewController+BetterLayoutGuides.h"
```
Then, you should be able to follow the Objective-C instructions, since the code is almost identical.
## Design Goals
@ -97,7 +90,7 @@ self.shyNavBarManager.scrollView = self.scrollView;
## A Deeper Look
The above example, while small, is complete! It makes the navigation bar enriched with humbility, that it will start getting out of the way when the scroll view starts scrolling. But, you may want to do more than that!
The above example, while small, is complete! It makes the navigation bar enriched with humility, that it will start getting out of the way when the scroll view starts scrolling. But, you may want to do more than that!
#### ACCESS THE MANAGER OF SHYNESS
@ -137,6 +130,17 @@ You can control that using the following properties on the `shyNavBarManager`:
@property (nonatomic) CGFloat contractionResistance; // default 0
```
#### CONTROLLING THE FADE BEHAVIOR
You can customize the fade behavior of the `UINavigationBar` through this property:
```objc
/* Choose how the navbar fades as it contracts/expands.
* Defaults to FadeSubviews
*/
@property (nonatomic) TLYShyNavBarFade fadeBehavior;
```
## How it Works
OK, I'll admit that I added this section purely to rant about how this project came together, and the decision making process behind it.
@ -165,7 +169,7 @@ This one was a pain... First, the experiments that this project went through inc
+ Adding a `UIPanGestureRecognizer` to the scroll view.
+ Make the user implement `UIScrollViewDelegate`, and send us the events.
The above didn't yield the perfect experience we were hoping for, except the last one. It did, however, make for redundant code everywhere, and forced the component user to implement the `UIScrollViewDelegate`. Tha's when the `NSProxy` happened.
The above didn't yield the perfect experience we were hoping for, except the last one. It did, however, make for redundant code everywhere, and forced the component user to implement the `UIScrollViewDelegate`. That's when the `NSProxy` happened.
When you assign the `scrollView` property to the TLYShyNavBarManager, we attach a proxy object to the `UIScrollView` as the delegate, and then the original delegate to that proxy. The proxy forwards the events we are interested in to the `TLYShyNavBarManager`, and of course, does everything else normally for the original selector, you won't even notice a thing!
@ -179,7 +183,7 @@ The way the offsets are applied to the navigation bar and extension view is thro
+ If we are expanding:
- We process the offset in the first node, and pass the residual to the next node.
It is a simple concept. Say we dragged down by 100 px, and the nav bar was contracted. The navigation bar would take 64 px of that to expand, and then pass the residual 36 px to the next node (extension view) to calculate its offset. The same goes for contracting, but it starts from the last node, all the way up to the navigation bar.
It is a simple concept. Say we dragged down by 100 px while the navbar was contracted. The navigation bar would take 44 px of that to expand, and then pass the residual 56 px to the next node (extension view) to calculate its offset. The same goes for contracting, but it starts from the last node, all the way up to the navigation bar.
We also add a parent relationship for a single purpose: Make the child follow its parent's offset. So, if the parent (e.g. navigation bar) is scrolling away to the top, we make sure the child accommodates the parent's offset in the calculation, so it appears as if the child is a subview of the parent.
@ -187,10 +191,10 @@ We also add a parent relationship for a single purpose: Make the child follow it
## Remarks
There are downsides in making this component as easy to use as it is. If you have read the how it works section carefully, you'd realize that trying to configure the the `shyNavBarManager` before it is included in the `UINavigationController` heirarchy, will break the component, since within the component, we cannot find the navigation bar, and an assert is triggered:
There are downsides in making this component as easy to use as it is. If you have read the how it works section carefully, you'd realize that trying to configure the the `shyNavBarManager` before it is included in the `UINavigationController` hierarchy, will break the component, since within the component, we cannot find the navigation bar, and an assert is triggered:
```objc
NSAssert(navbar != nil, @"You are using the component wrong... Please see the README file.");
NSAssert(navbar != nil, @"Please make sure the viewController is already attached to a navigation controller.");
```
Of course, that can be avoided by creating your own `TLYShyNavBarManager`, like so:
@ -203,27 +207,13 @@ shyManager.expansionResistance = 777.f;
viewController.shyNavBarManager = shyManager;
```
## Contributors
## Contributing
Thanks for everyone who opened an issue, shot me an email, and submitted a PR. Special thanks to those who submitted code that got checked in!
PRs are welcome! It is important to test changes, though. Simply go over the demo, make sure nothing is broken. Please do check both translucent and opaque modes. Once all is good, you're good to go!
_Sorted vaguely based on contribution according to [this](http://www.commandlinefu.com/commands/view/4519/list-all-authors-of-a-particular-git-project)_
If it is a feature or bug, it would be greatly appreciated if a new view is added to the demo project demonstrating the bug/feature.
+ Evan D. Schoenberg, M.D
+ Tony Nuzzi
+ Xurxo Méndez Pérez
+ Richard Das
+ Garret Riddle
+ Aleksey Kozhevnikov
+ modastic
+ Yukan
+ Remigiusz Herba
+ Nicholas Long
+ Koen Buddelmeijer
+ Anton Sokolchenko
+ Andrii Novoselskyi
+ Alek Slater
+ Aaron Satterfield
Thanks for everyone who opened an issue, shot me an email, and submitted a PR. Special thanks to those who submitted code that got checked in! This project was made possible with your help. ([See contributors graph](https://github.com/telly/TLYShyNavBar/graphs/contributors))
## Author

View File

@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#
s.name = "TLYShyNavBar"
s.version = "0.10.0"
s.version = "1.0.0"
s.summary = "TLYShyNavBar makes your UINavigationBar expand/shrink by adding just a single line. It also comes with extension view support!"
s.description = <<-DESC
@ -81,7 +81,7 @@ Pod::Spec.new do |s|
# Supports git, hg, bzr, svn and HTTP.
#
s.source = { :git => "https://github.com/telly/TLYShyNavBar.git", :tag => "0.10.0" }
s.source = { :git => "https://github.com/telly/TLYShyNavBar.git", :tag => "1.0.0" }
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
@ -95,7 +95,7 @@ Pod::Spec.new do |s|
s.source_files = "TLYShyNavBar/**/*"
s.exclude_files = ""
s.public_header_files = "TLYShyNavBar/TLYShyNavBarManager.h"
s.public_header_files = "TLYShyNavBar/*.h"
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

View File

@ -0,0 +1,386 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
A21B00001BFDD41100F9FB54 /* TLYShyScrollViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A21BFFF81BFDD41100F9FB54 /* TLYShyScrollViewController.m */; };
A21B00011BFDD41100F9FB54 /* TLYShyStatusBarController.h in Headers */ = {isa = PBXBuildFile; fileRef = A21BFFF91BFDD41100F9FB54 /* TLYShyStatusBarController.h */; };
A21B00021BFDD41100F9FB54 /* TLYShyStatusBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = A21BFFFA1BFDD41100F9FB54 /* TLYShyStatusBarController.m */; };
A21B00031BFDD41100F9FB54 /* TLYShyViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = A21BFFFB1BFDD41100F9FB54 /* TLYShyViewController.h */; };
A21B00041BFDD41100F9FB54 /* TLYShyViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A21BFFFC1BFDD41100F9FB54 /* TLYShyViewController.m */; };
A21B00081BFDD41900F9FB54 /* TLYShyNavBarFade.h in Headers */ = {isa = PBXBuildFile; fileRef = A21B00051BFDD41900F9FB54 /* TLYShyNavBarFade.h */; settings = {ATTRIBUTES = (Public, ); }; };
A21B00091BFDD41900F9FB54 /* TLYShyNavBarManager.h in Headers */ = {isa = PBXBuildFile; fileRef = A21B00061BFDD41900F9FB54 /* TLYShyNavBarManager.h */; settings = {ATTRIBUTES = (Public, ); }; };
A21B000A1BFDD41900F9FB54 /* TLYShyNavBarManager.m in Sources */ = {isa = PBXBuildFile; fileRef = A21B00071BFDD41900F9FB54 /* TLYShyNavBarManager.m */; };
A21BFFA71BFDCC8800F9FB54 /* TLYShyNavBar.h in Headers */ = {isa = PBXBuildFile; fileRef = A21BFFA61BFDCC8800F9FB54 /* TLYShyNavBar.h */; settings = {ATTRIBUTES = (Public, ); }; };
A21BFFED1BFDD40800F9FB54 /* NSObject+TLYSwizzlingHelpers.h in Headers */ = {isa = PBXBuildFile; fileRef = A21BFFE51BFDD40800F9FB54 /* NSObject+TLYSwizzlingHelpers.h */; };
A21BFFEE1BFDD40800F9FB54 /* NSObject+TLYSwizzlingHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = A21BFFE61BFDD40800F9FB54 /* NSObject+TLYSwizzlingHelpers.m */; };
A21BFFEF1BFDD40800F9FB54 /* TLYDelegateProxy.h in Headers */ = {isa = PBXBuildFile; fileRef = A21BFFE71BFDD40800F9FB54 /* TLYDelegateProxy.h */; };
A21BFFF01BFDD40800F9FB54 /* TLYDelegateProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = A21BFFE81BFDD40800F9FB54 /* TLYDelegateProxy.m */; };
A21BFFF11BFDD40800F9FB54 /* UIScrollView+Helpers.h in Headers */ = {isa = PBXBuildFile; fileRef = A21BFFE91BFDD40800F9FB54 /* UIScrollView+Helpers.h */; };
A21BFFF21BFDD40800F9FB54 /* UIScrollView+Helpers.m in Sources */ = {isa = PBXBuildFile; fileRef = A21BFFEA1BFDD40800F9FB54 /* UIScrollView+Helpers.m */; };
A21BFFF31BFDD40800F9FB54 /* UIViewController+BetterLayoutGuides.h in Headers */ = {isa = PBXBuildFile; fileRef = A21BFFEB1BFDD40800F9FB54 /* UIViewController+BetterLayoutGuides.h */; };
A21BFFF41BFDD40800F9FB54 /* UIViewController+BetterLayoutGuides.m in Sources */ = {isa = PBXBuildFile; fileRef = A21BFFEC1BFDD40800F9FB54 /* UIViewController+BetterLayoutGuides.m */; };
A21BFFFD1BFDD41100F9FB54 /* TLYShyChild.h in Headers */ = {isa = PBXBuildFile; fileRef = A21BFFF51BFDD41100F9FB54 /* TLYShyChild.h */; };
A21BFFFE1BFDD41100F9FB54 /* TLYShyParent.h in Headers */ = {isa = PBXBuildFile; fileRef = A21BFFF61BFDD41100F9FB54 /* TLYShyParent.h */; };
A21BFFFF1BFDD41100F9FB54 /* TLYShyScrollViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = A21BFFF71BFDD41100F9FB54 /* TLYShyScrollViewController.h */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
A21B00051BFDD41900F9FB54 /* TLYShyNavBarFade.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyNavBarFade.h; sourceTree = "<group>"; };
A21B00061BFDD41900F9FB54 /* TLYShyNavBarManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyNavBarManager.h; sourceTree = "<group>"; };
A21B00071BFDD41900F9FB54 /* TLYShyNavBarManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYShyNavBarManager.m; sourceTree = "<group>"; };
A21BFFA41BFDCC8800F9FB54 /* TLYShyNavBar.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = TLYShyNavBar.framework; sourceTree = BUILT_PRODUCTS_DIR; };
A21BFFA61BFDCC8800F9FB54 /* TLYShyNavBar.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TLYShyNavBar.h; sourceTree = "<group>"; };
A21BFFA81BFDCC8800F9FB54 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
A21BFFE51BFDD40800F9FB54 /* NSObject+TLYSwizzlingHelpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSObject+TLYSwizzlingHelpers.h"; path = "Categories/NSObject+TLYSwizzlingHelpers.h"; sourceTree = "<group>"; };
A21BFFE61BFDD40800F9FB54 /* NSObject+TLYSwizzlingHelpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSObject+TLYSwizzlingHelpers.m"; path = "Categories/NSObject+TLYSwizzlingHelpers.m"; sourceTree = "<group>"; };
A21BFFE71BFDD40800F9FB54 /* TLYDelegateProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TLYDelegateProxy.h; path = Categories/TLYDelegateProxy.h; sourceTree = "<group>"; };
A21BFFE81BFDD40800F9FB54 /* TLYDelegateProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TLYDelegateProxy.m; path = Categories/TLYDelegateProxy.m; sourceTree = "<group>"; };
A21BFFE91BFDD40800F9FB54 /* UIScrollView+Helpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIScrollView+Helpers.h"; path = "Categories/UIScrollView+Helpers.h"; sourceTree = "<group>"; };
A21BFFEA1BFDD40800F9FB54 /* UIScrollView+Helpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIScrollView+Helpers.m"; path = "Categories/UIScrollView+Helpers.m"; sourceTree = "<group>"; };
A21BFFEB1BFDD40800F9FB54 /* UIViewController+BetterLayoutGuides.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIViewController+BetterLayoutGuides.h"; path = "Categories/UIViewController+BetterLayoutGuides.h"; sourceTree = "<group>"; };
A21BFFEC1BFDD40800F9FB54 /* UIViewController+BetterLayoutGuides.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIViewController+BetterLayoutGuides.m"; path = "Categories/UIViewController+BetterLayoutGuides.m"; sourceTree = "<group>"; };
A21BFFF51BFDD41100F9FB54 /* TLYShyChild.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TLYShyChild.h; path = ShyControllers/TLYShyChild.h; sourceTree = "<group>"; };
A21BFFF61BFDD41100F9FB54 /* TLYShyParent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TLYShyParent.h; path = ShyControllers/TLYShyParent.h; sourceTree = "<group>"; };
A21BFFF71BFDD41100F9FB54 /* TLYShyScrollViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TLYShyScrollViewController.h; path = ShyControllers/TLYShyScrollViewController.h; sourceTree = "<group>"; };
A21BFFF81BFDD41100F9FB54 /* TLYShyScrollViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TLYShyScrollViewController.m; path = ShyControllers/TLYShyScrollViewController.m; sourceTree = "<group>"; };
A21BFFF91BFDD41100F9FB54 /* TLYShyStatusBarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TLYShyStatusBarController.h; path = ShyControllers/TLYShyStatusBarController.h; sourceTree = "<group>"; };
A21BFFFA1BFDD41100F9FB54 /* TLYShyStatusBarController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TLYShyStatusBarController.m; path = ShyControllers/TLYShyStatusBarController.m; sourceTree = "<group>"; };
A21BFFFB1BFDD41100F9FB54 /* TLYShyViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TLYShyViewController.h; path = ShyControllers/TLYShyViewController.h; sourceTree = "<group>"; };
A21BFFFC1BFDD41100F9FB54 /* TLYShyViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TLYShyViewController.m; path = ShyControllers/TLYShyViewController.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
A21BFFA01BFDCC8800F9FB54 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
A21BFF711BFDCB3E00F9FB54 = {
isa = PBXGroup;
children = (
A21BFFAC1BFDCCE000F9FB54 /* Products */,
A21BFFA51BFDCC8800F9FB54 /* TLYShyNavBar */,
);
sourceTree = "<group>";
};
A21BFFA51BFDCC8800F9FB54 /* TLYShyNavBar */ = {
isa = PBXGroup;
children = (
A21B00051BFDD41900F9FB54 /* TLYShyNavBarFade.h */,
A21B00061BFDD41900F9FB54 /* TLYShyNavBarManager.h */,
A21B00071BFDD41900F9FB54 /* TLYShyNavBarManager.m */,
A21BFFDE1BFDD1A500F9FB54 /* Categories */,
A21BFFCD1BFDD18D00F9FB54 /* ShyControllers */,
A21BFFA61BFDCC8800F9FB54 /* TLYShyNavBar.h */,
A21BFFAD1BFDCD5100F9FB54 /* Supporting Files */,
);
path = TLYShyNavBar;
sourceTree = "<group>";
};
A21BFFAC1BFDCCE000F9FB54 /* Products */ = {
isa = PBXGroup;
children = (
A21BFFA41BFDCC8800F9FB54 /* TLYShyNavBar.framework */,
);
name = Products;
sourceTree = "<group>";
};
A21BFFAD1BFDCD5100F9FB54 /* Supporting Files */ = {
isa = PBXGroup;
children = (
A21BFFA81BFDCC8800F9FB54 /* Info.plist */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
A21BFFCD1BFDD18D00F9FB54 /* ShyControllers */ = {
isa = PBXGroup;
children = (
A21BFFF51BFDD41100F9FB54 /* TLYShyChild.h */,
A21BFFF61BFDD41100F9FB54 /* TLYShyParent.h */,
A21BFFF71BFDD41100F9FB54 /* TLYShyScrollViewController.h */,
A21BFFF81BFDD41100F9FB54 /* TLYShyScrollViewController.m */,
A21BFFF91BFDD41100F9FB54 /* TLYShyStatusBarController.h */,
A21BFFFA1BFDD41100F9FB54 /* TLYShyStatusBarController.m */,
A21BFFFB1BFDD41100F9FB54 /* TLYShyViewController.h */,
A21BFFFC1BFDD41100F9FB54 /* TLYShyViewController.m */,
);
name = ShyControllers;
sourceTree = "<group>";
};
A21BFFDE1BFDD1A500F9FB54 /* Categories */ = {
isa = PBXGroup;
children = (
A21BFFE51BFDD40800F9FB54 /* NSObject+TLYSwizzlingHelpers.h */,
A21BFFE61BFDD40800F9FB54 /* NSObject+TLYSwizzlingHelpers.m */,
A21BFFE71BFDD40800F9FB54 /* TLYDelegateProxy.h */,
A21BFFE81BFDD40800F9FB54 /* TLYDelegateProxy.m */,
A21BFFE91BFDD40800F9FB54 /* UIScrollView+Helpers.h */,
A21BFFEA1BFDD40800F9FB54 /* UIScrollView+Helpers.m */,
A21BFFEB1BFDD40800F9FB54 /* UIViewController+BetterLayoutGuides.h */,
A21BFFEC1BFDD40800F9FB54 /* UIViewController+BetterLayoutGuides.m */,
);
name = Categories;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
A21BFFA11BFDCC8800F9FB54 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
A21BFFED1BFDD40800F9FB54 /* NSObject+TLYSwizzlingHelpers.h in Headers */,
A21B00091BFDD41900F9FB54 /* TLYShyNavBarManager.h in Headers */,
A21B00081BFDD41900F9FB54 /* TLYShyNavBarFade.h in Headers */,
A21B00011BFDD41100F9FB54 /* TLYShyStatusBarController.h in Headers */,
A21BFFF31BFDD40800F9FB54 /* UIViewController+BetterLayoutGuides.h in Headers */,
A21BFFFD1BFDD41100F9FB54 /* TLYShyChild.h in Headers */,
A21BFFEF1BFDD40800F9FB54 /* TLYDelegateProxy.h in Headers */,
A21BFFF11BFDD40800F9FB54 /* UIScrollView+Helpers.h in Headers */,
A21B00031BFDD41100F9FB54 /* TLYShyViewController.h in Headers */,
A21BFFFF1BFDD41100F9FB54 /* TLYShyScrollViewController.h in Headers */,
A21BFFA71BFDCC8800F9FB54 /* TLYShyNavBar.h in Headers */,
A21BFFFE1BFDD41100F9FB54 /* TLYShyParent.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
A21BFFA31BFDCC8800F9FB54 /* TLYShyNavBar */ = {
isa = PBXNativeTarget;
buildConfigurationList = A21BFFA91BFDCC8800F9FB54 /* Build configuration list for PBXNativeTarget "TLYShyNavBar" */;
buildPhases = (
A21BFF9F1BFDCC8800F9FB54 /* Sources */,
A21BFFA01BFDCC8800F9FB54 /* Frameworks */,
A21BFFA11BFDCC8800F9FB54 /* Headers */,
A21BFFA21BFDCC8800F9FB54 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = TLYShyNavBar;
productName = TLYShyNavBar;
productReference = A21BFFA41BFDCC8800F9FB54 /* TLYShyNavBar.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
A21BFF721BFDCB3E00F9FB54 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0710;
TargetAttributes = {
A21BFFA31BFDCC8800F9FB54 = {
CreatedOnToolsVersion = 7.1.1;
};
};
};
buildConfigurationList = A21BFF751BFDCB3E00F9FB54 /* Build configuration list for PBXProject "TLYShyNavBar" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = A21BFF711BFDCB3E00F9FB54;
productRefGroup = A21BFF711BFDCB3E00F9FB54;
projectDirPath = "";
projectRoot = "";
targets = (
A21BFFA31BFDCC8800F9FB54 /* TLYShyNavBar */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
A21BFFA21BFDCC8800F9FB54 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
A21BFF9F1BFDCC8800F9FB54 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A21B00041BFDD41100F9FB54 /* TLYShyViewController.m in Sources */,
A21BFFF21BFDD40800F9FB54 /* UIScrollView+Helpers.m in Sources */,
A21B000A1BFDD41900F9FB54 /* TLYShyNavBarManager.m in Sources */,
A21BFFF41BFDD40800F9FB54 /* UIViewController+BetterLayoutGuides.m in Sources */,
A21BFFEE1BFDD40800F9FB54 /* NSObject+TLYSwizzlingHelpers.m in Sources */,
A21BFFF01BFDD40800F9FB54 /* TLYDelegateProxy.m in Sources */,
A21B00021BFDD41100F9FB54 /* TLYShyStatusBarController.m in Sources */,
A21B00001BFDD41100F9FB54 /* TLYShyScrollViewController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
A21BFF8D1BFDCB3E00F9FB54 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.1;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
A21BFF8E1BFDCB3E00F9FB54 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.1;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
A21BFFAA1BFDCC8800F9FB54 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CURRENT_PROJECT_VERSION = 1.0.0;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = TLYShyNavBar/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.telly.TLYShyNavBar;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Debug;
};
A21BFFAB1BFDCC8800F9FB54 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CURRENT_PROJECT_VERSION = 1.0.0;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = TLYShyNavBar/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.telly.TLYShyNavBar;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
A21BFF751BFDCB3E00F9FB54 /* Build configuration list for PBXProject "TLYShyNavBar" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A21BFF8D1BFDCB3E00F9FB54 /* Debug */,
A21BFF8E1BFDCB3E00F9FB54 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
A21BFFA91BFDCC8800F9FB54 /* Build configuration list for PBXNativeTarget "TLYShyNavBar" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A21BFFAA1BFDCC8800F9FB54 /* Debug */,
A21BFFAB1BFDCC8800F9FB54 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = A21BFF721BFDCB3E00F9FB54 /* Project object */;
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:TLYShyNavBar.xcodeproj">
</FileRef>
</Workspace>

View File

@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0710"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A21BFFA31BFDCC8800F9FB54"
BuildableName = "TLYShyNavBar.framework"
BlueprintName = "TLYShyNavBar"
ReferencedContainer = "container:TLYShyNavBar.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A21BFF841BFDCB3E00F9FB54"
BuildableName = "TLYShyNavBarTests.xctest"
BlueprintName = "TLYShyNavBarTests"
ReferencedContainer = "container:TLYShyNavBar.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A21BFFA31BFDCC8800F9FB54"
BuildableName = "TLYShyNavBar.framework"
BlueprintName = "TLYShyNavBar"
ReferencedContainer = "container:TLYShyNavBar.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A21BFFA31BFDCC8800F9FB54"
BuildableName = "TLYShyNavBar.framework"
BlueprintName = "TLYShyNavBar"
ReferencedContainer = "container:TLYShyNavBar.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A21BFFA31BFDCC8800F9FB54"
BuildableName = "TLYShyNavBar.framework"
BlueprintName = "TLYShyNavBar"
ReferencedContainer = "container:TLYShyNavBar.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -0,0 +1,16 @@
//
// UIScrollView+Helpers.h
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 11/13/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIScrollView (Helpers)
- (void)tly_setInsets:(UIEdgeInsets)contentInsets;
@end

View File

@ -0,0 +1,29 @@
//
// UIScrollView+Helpers.m
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 11/13/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#import "UIScrollView+Helpers.h"
@implementation UIScrollView (Helpers)
// Modify contentInset and scrollIndicatorInsets
- (void)tly_setInsets:(UIEdgeInsets)contentInsets
{
if (!self.isDragging && !self.isDecelerating && contentInsets.top != self.contentInset.top)
{
CGFloat offsetDelta = contentInsets.top - self.contentInset.top;
CGRect bounds = self.bounds;
bounds.origin.y -= offsetDelta;
self.bounds = bounds;
}
self.contentInset = contentInsets;
self.scrollIndicatorInsets = contentInsets;
}
@end

26
TLYShyNavBar/Info.plist Normal file
View File

@ -0,0 +1,26 @@
<?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>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>

View File

@ -0,0 +1,19 @@
//
// TLYShyChild.h
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 11/13/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#ifndef TLYShyChild_h
#define TLYShyChild_h
@protocol TLYShyChild <NSObject>
- (void)offsetCenterBy:(CGPoint)deltaPoint;
@end
#endif /* TLYShyChild_h */

View File

@ -0,0 +1,25 @@
//
// TLYShyParent.h
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 11/13/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#ifndef TLYShyParent_h
#define TLYShyParent_h
#import <UIKit/UIKit.h>
/** A shy parent can be asked for its maxY and height so the
* child can pin itself to the bottom and calculate the total
* height.
*/
@protocol TLYShyParent <NSObject>
- (CGFloat)maxYRelativeToView:(UIView *)superview;
- (CGFloat)calculateTotalHeightRecursively;
@end
#endif /* TLYShyParent_h */

View File

@ -0,0 +1,23 @@
//
// TLYShyScrollViewController.h
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 11/13/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TLYShyViewController.h"
#import "TLYShyParent.h"
#import "TLYShyChild.h"
@interface TLYShyScrollViewController : NSObject <TLYShyChild>
@property (nonatomic, weak) UIScrollView *scrollView;
@property (nonatomic, weak) UIRefreshControl *refreshControl;
@property (nonatomic, weak) TLYShyViewController *parent;
- (CGFloat)updateLayoutIfNeeded;
@end

View File

@ -0,0 +1,58 @@
//
// TLYShyScrollViewController.m
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 11/13/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#import "TLYShyScrollViewController.h"
#import "../Categories/UIScrollView+Helpers.h"
@implementation TLYShyScrollViewController
- (void)offsetCenterBy:(CGPoint)deltaPoint
{
[self updateLayoutIfNeeded];
}
- (CGFloat)updateLayoutIfNeeded
{
if (self.scrollView.contentSize.height < FLT_EPSILON
&& ([self.scrollView isKindOfClass:[UITableView class]]
|| [self.scrollView isKindOfClass:[UICollectionView class]])
)
{
return 0.f;
}
CGFloat parentMaxY = [self.parent maxYRelativeToView:self.scrollView.superview];
CGFloat normalizedY = parentMaxY - self.scrollView.frame.origin.y;
UIEdgeInsets insets = UIEdgeInsetsMake(self.scrollView.contentInset.top, 0, self.scrollView.contentInset.bottom, 0);
insets.top = normalizedY;
if (normalizedY > -FLT_EPSILON && !UIEdgeInsetsEqualToEdgeInsets(insets, self.scrollView.contentInset))
{
CGFloat delta = insets.top - self.scrollView.contentInset.top;
if (self.refreshControl == nil || [self.refreshControl isHidden]) {
[self.scrollView tly_setInsets:insets];
}
return delta;
}
if (normalizedY < -FLT_EPSILON)
{
CGRect frame = self.scrollView.frame;
frame = UIEdgeInsetsInsetRect(frame, insets);
self.scrollView.frame = frame;
return [self updateLayoutIfNeeded];
}
return 0.f;
}
@end

View File

@ -0,0 +1,17 @@
//
// TLYShyStatusBarController.h
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 11/13/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TLYShyParent.h"
@interface TLYShyStatusBarController : NSObject <TLYShyParent>
@property (nonatomic, weak) UIViewController *viewController;
@end

View File

@ -0,0 +1,68 @@
//
// TLYShyStatusBarController.m
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 11/13/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#import "TLYShyStatusBarController.h"
// Thanks to SO user, MattDiPasquale
// http://stackoverflow.com/questions/12991935/how-to-programmatically-get-ios-status-bar-height/16598350#16598350
static inline CGFloat AACStatusBarHeight(UIViewController *viewController)
{
if ([UIApplication sharedApplication].statusBarHidden)
{
return 0.f;
}
// Modal views do not overlap the status bar, so no allowance need be made for it
CGSize statusBarSize = [UIApplication sharedApplication].statusBarFrame.size;
CGFloat statusBarHeight = MIN(statusBarSize.width, statusBarSize.height);
UIView *view = viewController.view;
CGRect frame = [view.superview convertRect:view.frame toView:view.window];
BOOL viewOverlapsStatusBar = frame.origin.y < statusBarHeight;
if (!viewOverlapsStatusBar)
{
return 0.f;
}
return statusBarHeight;
}
@implementation TLYShyStatusBarController
- (CGFloat)_statusBarHeight
{
CGFloat statusBarHeight = AACStatusBarHeight(self.viewController);
/* The standard status bar is 20 pixels. The navigation bar extends 20 pixels up so it is overlapped by the status bar.
* When there is a larger than 20 pixel status bar (e.g. a phone call is in progress or GPS is active), the center needs
* to shift up 20 pixels to avoid this 'dead space' being visible above the usual nav bar.
*/
if (statusBarHeight > 20)
{
statusBarHeight -= 20;
}
return statusBarHeight;
}
- (CGFloat)maxYRelativeToView:(UIView *)superview
{
return [self _statusBarHeight];
}
- (CGFloat)calculateTotalHeightRecursively
{
return [self _statusBarHeight];
}
@end

View File

@ -8,6 +8,10 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "TLYShyParent.h"
#import "TLYShyChild.h"
#import "../TLYShyNavBarFade.h"
extern const CGFloat contractionVelocity;
@ -15,22 +19,6 @@ typedef CGPoint(^TLYShyViewControllerExpandedCenterBlock)(UIView *view);
typedef CGFloat(^TLYShyViewControllerContractionAmountBlock)(UIView *view);
/** This enum is duplicated in the manager header, as to not cause headaches
* for users looking to update the library in Cocoapods.
*/
typedef NS_ENUM(NSInteger, TLYShyNavViewControllerFade) {
TLYShyNavViewControllerFadeDisabled,
TLYShyNavViewControllerFadeSubviews,
TLYShyNavViewControllerFadeNavbar,
};
@protocol TLYShyViewControllerParent <NSObject>
@property (nonatomic, readonly) CGFloat viewMaxY;
@end
/* CLASS DESCRIPTION:
* ==================
* A shy view is a view that contracts when a scrolling event is
@ -42,24 +30,28 @@ typedef NS_ENUM(NSInteger, TLYShyNavViewControllerFade) {
* child to an already childified node is not supported.
*/
@interface TLYShyViewController : NSObject
@interface TLYShyViewController : NSObject <TLYShyChild>
@property (nonatomic, weak) TLYShyViewController *child;
@property (nonatomic, weak) id<TLYShyViewControllerParent> parent;
@property (nonatomic, weak) id<TLYShyChild> child;
@property (nonatomic, weak) id<TLYShyParent> parent;
@property (nonatomic, weak) TLYShyViewController *subShyController;
@property (nonatomic, weak) UIView *view;
@property (nonatomic) TLYShyNavViewControllerFade fadeBehavior;
@property (nonatomic, assign, readonly) BOOL contracted;
@property (nonatomic, assign, readonly) BOOL expanded;
@property (nonatomic, readonly) CGFloat totalHeight;
@property (nonatomic) TLYShyNavBarFade fadeBehavior;
/* Sticky means it will always stay in expanded state
*/
@property (nonatomic) BOOL sticky;
@property (nonatomic) BOOL handleStatusBar;
- (CGFloat)updateYOffset:(CGFloat)deltaY;
- (void)offsetCenterBy:(CGPoint)deltaPoint;
- (CGFloat)updateYOffset:(CGFloat)deltaY;
- (CGFloat)snap:(BOOL)contract;
- (CGFloat)snap:(BOOL)contract completion:(void (^)())completion;
- (CGFloat)expand;
- (CGFloat)contract;
@ -67,5 +59,5 @@ typedef NS_ENUM(NSInteger, TLYShyNavViewControllerFade) {
@end
@interface TLYShyViewController (AsParent) <TLYShyViewControllerParent>
@interface TLYShyViewController (AsParent) <TLYShyParent>
@end

View File

@ -8,26 +8,34 @@
#import "TLYShyViewController.h"
@implementation TLYShyViewController (AsParent)
- (CGFloat)viewMaxY
- (CGFloat)maxYRelativeToView:(UIView *)superview
{
return CGRectGetMaxY(self.view.frame);
CGPoint maxEdge = CGPointMake(0, CGRectGetHeight(self.view.bounds));
CGPoint normalizedMaxEdge = [superview convertPoint:maxEdge fromView:self.view];
return normalizedMaxEdge.y;
}
- (CGFloat)calculateTotalHeightRecursively
{
return CGRectGetHeight(self.view.bounds) + [self.parent calculateTotalHeightRecursively];
}
@end
static CGFloat const kTLYShyViewControllerStatusBarHeight = 20.0f;
@interface TLYShyViewController ()
@property (nonatomic) CGPoint expandedCenterValue;
@property (nonatomic) CGFloat contractionAmountValue;
@property (nonatomic, assign) CGPoint expandedCenterValue;
@property (nonatomic, assign) CGFloat contractionAmountValue;
@property (nonatomic) CGPoint contractedCenterValue;
@property (nonatomic, assign) CGPoint contractedCenterValue;
@property (nonatomic, getter = isContracted) BOOL contracted;
@property (nonatomic, getter = isExpanded) BOOL expanded;
@property (nonatomic, assign) BOOL contracted;
@property (nonatomic, assign) BOOL expanded;
@end
@ -41,14 +49,18 @@
CGPoint center = CGPointMake(CGRectGetMidX(self.view.bounds),
CGRectGetMidY(self.view.bounds));
center.y += self.parent.viewMaxY;
center.y += [self.parent maxYRelativeToView:self.view.superview];
return center;
}
- (CGFloat)contractionAmountValue
{
return self.sticky ? 0.f : CGRectGetHeight(self.view.bounds);
CGFloat height = CGRectGetHeight(self.view.bounds);
if (self.handleStatusBar && [UIApplication sharedApplication].isStatusBarHidden) {
height -= kTLYShyViewControllerStatusBarHeight;
}
return self.sticky ? 0.f : height;
}
- (CGPoint)contractedCenterValue
@ -56,21 +68,16 @@
return CGPointMake(self.expandedCenterValue.x, self.expandedCenterValue.y - self.contractionAmountValue);
}
- (BOOL)isContracted
- (BOOL)contracted
{
return fabs(self.view.center.y - self.contractedCenterValue.y) < FLT_EPSILON;
}
- (BOOL)isExpanded
- (BOOL)expanded
{
return fabs(self.view.center.y - self.expandedCenterValue.y) < FLT_EPSILON;
}
- (CGFloat)totalHeight
{
return self.child.totalHeight + (self.expandedCenterValue.y - self.contractedCenterValue.y);
}
#pragma mark - Private methods
- (void)_onAlphaUpdate:(CGFloat)alpha
@ -84,17 +91,17 @@
switch (self.fadeBehavior) {
case TLYShyNavViewControllerFadeDisabled:
case TLYShyNavBarFadeDisabled:
self.view.alpha = 1.f;
[self _updateSubviewsAlpha:1.f];
break;
case TLYShyNavViewControllerFadeSubviews:
case TLYShyNavBarFadeSubviews:
self.view.alpha = 1.f;
[self _updateSubviewsAlpha:alpha];
break;
case TLYShyNavViewControllerFadeNavbar:
case TLYShyNavBarFadeNavbar:
self.view.alpha = alpha;
[self _updateSubviewsAlpha:1.f];
break;
@ -128,11 +135,11 @@
#pragma mark - Public methods
- (void)setFadeBehavior:(TLYShyNavViewControllerFade)fadeBehavior
- (void)setFadeBehavior:(TLYShyNavBarFade)fadeBehavior
{
_fadeBehavior = fadeBehavior;
if (fadeBehavior == TLYShyNavViewControllerFadeDisabled)
if (fadeBehavior == TLYShyNavBarFadeDisabled)
{
[self _onAlphaUpdate:1.f];
}
@ -140,46 +147,56 @@
- (void)offsetCenterBy:(CGPoint)deltaPoint
{
[self.child offsetCenterBy:deltaPoint];
self.view.center = CGPointMake(self.view.center.x + deltaPoint.x,
self.view.center.y + deltaPoint.y);
[self.child offsetCenterBy:deltaPoint];
}
- (CGFloat)updateYOffset:(CGFloat)deltaY
{
if (self.child && deltaY < 0)
if (self.subShyController && deltaY < 0)
{
deltaY = [self.child updateYOffset:deltaY];
self.child.view.hidden = (!self.child.sticky && deltaY < 0);
deltaY = [self.subShyController updateYOffset:deltaY];
}
CGFloat newYOffset = self.view.center.y + deltaY;
CGFloat newYCenter = MAX(MIN(self.expandedCenterValue.y, newYOffset), self.contractedCenterValue.y);
CGFloat residual = deltaY;
[self _updateCenter:CGPointMake(self.expandedCenterValue.x, newYCenter)];
CGFloat newAlpha = 1.f - (self.expandedCenterValue.y - self.view.center.y) / self.contractionAmountValue;
newAlpha = MIN(MAX(FLT_EPSILON, newAlpha), 1.f);
[self _onAlphaUpdate:newAlpha];
CGFloat residual = newYOffset - newYCenter;
if (self.child && deltaY > 0 && residual > 0)
if (!self.sticky)
{
residual = [self.child updateYOffset:residual];
self.child.view.hidden = (!self.child.sticky && residual - (newYOffset - newYCenter) > FLT_EPSILON);
CGFloat newYOffset = self.view.center.y + deltaY;
CGFloat newYCenter = MAX(MIN(self.expandedCenterValue.y, newYOffset), self.contractedCenterValue.y);
[self _updateCenter:CGPointMake(self.expandedCenterValue.x, newYCenter)];
CGFloat newAlpha = 1.f - (self.expandedCenterValue.y - self.view.center.y) / self.contractionAmountValue;
newAlpha = MIN(MAX(FLT_EPSILON, newAlpha), 1.f);
[self _onAlphaUpdate:newAlpha];
residual = newYOffset - newYCenter;
// QUICK FIX: Only the extensionView is hidden
if (!self.subShyController)
{
self.view.hidden = residual < 0;
}
}
else if (self.child.sticky && deltaY > 0)
if (self.subShyController && deltaY > 0 && residual > 0)
{
[self.child updateYOffset:deltaY];
residual = [self.subShyController updateYOffset:residual];
}
return residual;
}
- (CGFloat)snap:(BOOL)contract
{
return [self snap:contract completion:nil];
}
- (CGFloat)snap:(BOOL)contract completion:(void (^)())completion
{
/* "The Facebook" UX dictates that:
*
@ -195,13 +212,19 @@
__block CGFloat deltaY;
[UIView animateWithDuration:0.2 animations:^
{
if ((contract && self.child.isContracted) || (!contract && !self.isExpanded))
if ((contract && self.subShyController.contracted) || (!contract && !self.expanded))
{
deltaY = [self contract];
}
else
{
deltaY = [self.child expand];
deltaY = [self.subShyController expand];
}
}
completion:^(BOOL finished)
{
if (completion && finished) {
completion();
}
}];
@ -217,7 +240,7 @@
CGFloat amountToMove = self.expandedCenterValue.y - self.view.center.y;
[self _updateCenter:self.expandedCenterValue];
[self.child expand];
[self.subShyController expand];
return amountToMove;
}
@ -226,8 +249,10 @@
{
CGFloat amountToMove = self.contractedCenterValue.y - self.view.center.y;
[self _onAlphaUpdate:FLT_EPSILON];
[self _updateCenter:self.contractedCenterValue];
[self.child contract];
[self.subShyController contract];
return amountToMove;
}

View File

@ -0,0 +1,15 @@
//
// TLYShyNavBar.h
// TLYShyNavBar
//
#import <Foundation/Foundation.h>
//! Project version number for TLYShyNavBar.
FOUNDATION_EXPORT double TLYShyNavBarVersionNumber;
//! Project version string for TLYShyNavBar.
FOUNDATION_EXPORT const unsigned char TLYShyNavBarVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <TLYShyNavBar/PublicHeader.h>
#import <TLYShyNavBar/TLYShyNavBarManager.h>

View File

@ -0,0 +1,21 @@
//
// TLYShyNavBarFade.h
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 11/13/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#ifndef TLYShyNavBarFade_h
#define TLYShyNavBarFade_h
/** This enum helps control the navigation bar fade behavior.
*/
typedef NS_ENUM(NSInteger, TLYShyNavBarFade) {
TLYShyNavBarFadeDisabled,
TLYShyNavBarFadeSubviews,
TLYShyNavBarFadeNavbar,
};
#endif /* TLYShyNavBarFade_h */

View File

@ -8,17 +8,9 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "TLYShyNavBarFade.h"
/** This enum helps control the navigation bar fade behavior.
* NOTE: It is duplicated in the ShyNavController header for now.
*/
typedef NS_ENUM(NSInteger, TLYShyNavBarFade) {
TLYShyNavBarFadeDisabled,
TLYShyNavBarFadeSubviews,
TLYShyNavBarFadeNavbar,
};
@protocol TLYShyNavBarManagerDelegate;
/** CLASS DESCRIPTION:
* ==================
@ -63,7 +55,7 @@ typedef NS_ENUM(NSInteger, TLYShyNavBarFade) {
*/
@property (nonatomic) BOOL stickyExtensionView;
/* Control the resistance when scrolling up/down before the navbar
/* Control the resistance when scrolling up/down before the navbar
* expands/contracts again.
*/
@property (nonatomic) CGFloat expansionResistance; // default 200
@ -79,6 +71,31 @@ typedef NS_ENUM(NSInteger, TLYShyNavBarFade) {
*/
@property (nonatomic) BOOL disable;
/* Use this to be notified about contraction and expansion events.
*/
@property (nonatomic, weak) id<TLYShyNavBarManagerDelegate> delegate;
@property (nonatomic) BOOL handleStatusBar;
@property (nonatomic) BOOL contracted;
@property (nonatomic) BOOL expanded;
- (void)expandWithCompletion:(void (^)())completion;
@end
/* PROTOCOL DESCRIPTION:
* =====================
* This protocol is used to notify an optional TLYShyNavBarManager's delegate
* when a contraction or expansion finishes animating.
*/
@protocol TLYShyNavBarManagerDelegate <NSObject>
@optional
- (void)shyNavBarManagerDidBecomeFullyContracted:(TLYShyNavBarManager *) shyNavBarManager;
- (void)shyNavBarManagerDidFinishContracting:(TLYShyNavBarManager *) shyNavBarManager;
- (void)shyNavBarManagerDidFinishExpanding:(TLYShyNavBarManager *) shyNavBarManager;
@end
@ -98,20 +115,15 @@ typedef NS_ENUM(NSInteger, TLYShyNavBarFade) {
/* Initially, this is nil, but created for you when you access it */
@property (nonatomic, strong) TLYShyNavBarManager *shyNavBarManager;
@end
/* DEPRECATED:
* ===========
* Please move away from using these properties, as they will be
* removed in the next major release.
/*
* Set the TLYShyNavBarManager while also specifying a view controller
*/
@interface TLYShyNavBarManager (Deprecated)
- (void)setShyNavBarManager:(TLYShyNavBarManager *)shyNavBarManager
viewController:(UIViewController *)viewController;
@property (nonatomic, getter = isAlphaFadeEnabled) BOOL alphaFadeEnabled
DEPRECATED_MSG_ATTRIBUTE("use fadeBehavior = TLYShyNavBarFade(Subviews or None)");
/* Use this to find out if a TLYShyNavBarManager instance was associated
* to this view controller, without triggering its creation and association.
*/
- (BOOL)isShyNavBarManagerPresent;
@property (nonatomic, getter = isAlphaFadeEntireNavBarEnabled) BOOL alphaFadeEntireNavBar
DEPRECATED_MSG_ATTRIBUTE("use fadeBehavior = TLYShyNavBarFadeNavbar");
@end
@end

View File

@ -7,107 +7,40 @@
//
#import "TLYShyNavBarManager.h"
#import "TLYShyViewController.h"
#import "TLYDelegateProxy.h"
#import "UIViewController+BetterLayoutGuides.h"
#import "NSObject+TLYSwizzlingHelpers.h"
#import "ShyControllers/TLYShyViewController.h"
#import "ShyControllers/TLYShyStatusBarController.h"
#import "ShyControllers/TLYShyScrollViewController.h"
#import "Categories/TLYDelegateProxy.h"
#import "Categories/UIViewController+BetterLayoutGuides.h"
#import "Categories/NSObject+TLYSwizzlingHelpers.h"
#import "Categories/UIScrollView+Helpers.h"
#import <objc/runtime.h>
#pragma mark - Helper functions
// Thanks to SO user, MattDiPasquale
// http://stackoverflow.com/questions/12991935/how-to-programmatically-get-ios-status-bar-height/16598350#16598350
static inline CGFloat AACStatusBarHeight(UIViewController *viewController)
{
if ([UIApplication sharedApplication].statusBarHidden)
{
return 0.f;
}
// Modal views do not overlap the status bar, so no allowance need be made for it
CGSize statusBarSize = [UIApplication sharedApplication].statusBarFrame.size;
CGFloat statusBarHeight = MIN(statusBarSize.width, statusBarSize.height);
UIView *view = viewController.view;
CGRect frame = [view.superview convertRect:view.frame toView:view.window];
BOOL viewOverlapsStatusBar = frame.origin.y < statusBarHeight;
if (!viewOverlapsStatusBar)
{
return 0.f;
}
return statusBarHeight;
}
static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManagerKVOContext;
@implementation UIScrollView(Helper)
// Modify contentInset and scrollIndicatorInsets while preserving visual content offset
- (void)tly_smartSetInsets:(UIEdgeInsets)contentAndScrollIndicatorInsets
{
if (contentAndScrollIndicatorInsets.top != self.contentInset.top)
{
CGPoint contentOffset = self.contentOffset;
contentOffset.y -= contentAndScrollIndicatorInsets.top - self.contentInset.top;
self.contentOffset = contentOffset;
}
self.contentInset = self.scrollIndicatorInsets = contentAndScrollIndicatorInsets;
}
@end
@interface TLYShyStatusBarController : NSObject <TLYShyViewControllerParent>
@property (nonatomic, weak) UIViewController *viewController;
@end
@implementation TLYShyStatusBarController
- (CGFloat)viewMaxY
{
CGFloat statusBarHeight = AACStatusBarHeight(self.viewController);
/* The standard status bar is 20 pixels. The navigation bar extends 20 pixels up so it is overlapped by the status bar.
* When there is a larger than 20 pixel status bar (e.g. a phone call is in progress or GPS is active), the center needs
* to shift up 20 pixels to avoid this 'dead space' being visible above the usual nav bar.
*/
if (statusBarHeight > 20)
{
statusBarHeight -= 20;
}
return statusBarHeight;
}
@end
#pragma mark - TLYShyNavBarManager class
@interface TLYShyNavBarManager () <UIScrollViewDelegate>
@property (nonatomic, strong) id<TLYShyViewControllerParent> statusBarController;
@property (nonatomic, strong) id<TLYShyParent> statusBarController;
@property (nonatomic, strong) TLYShyViewController *navBarController;
@property (nonatomic, strong) TLYShyViewController *extensionController;
@property (nonatomic, strong) TLYShyScrollViewController *scrollViewController;
@property (nonatomic, strong) TLYDelegateProxy *delegateProxy;
@property (nonatomic, strong) UIView *extensionViewContainer;
@property (nonatomic) UIEdgeInsets previousScrollInsets;
@property (nonatomic) CGFloat previousYOffset;
@property (nonatomic) CGFloat resistanceConsumed;
@property (nonatomic, assign) CGFloat previousYOffset;
@property (nonatomic, assign) CGFloat resistanceConsumed;
@property (nonatomic, getter = isContracting) BOOL contracting;
@property (nonatomic) BOOL previousContractionState;
@property (nonatomic, assign) BOOL contracting;
@property (nonatomic, assign) BOOL previousContractionState;
@property (nonatomic, readonly) BOOL isViewControllerVisible;
@ -123,33 +56,40 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
if (self)
{
self.delegateProxy = [[TLYDelegateProxy alloc] initWithMiddleMan:self];
/* Initialize defaults */
self.contracting = NO;
self.previousContractionState = YES;
self.expansionResistance = 200.f;
self.contractionResistance = 0.f;
self.fadeBehavior = TLYShyNavBarFadeSubviews;
self.previousScrollInsets = UIEdgeInsetsZero;
self.previousYOffset = NAN;
/* Initialize shy controllers */
self.statusBarController = [[TLYShyStatusBarController alloc] init];
self.scrollViewController = [[TLYShyScrollViewController alloc] init];
self.navBarController = [[TLYShyViewController alloc] init];
self.navBarController.parent = self.statusBarController;
self.extensionViewContainer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100.f, 0.f)];
self.extensionViewContainer.backgroundColor = [UIColor clearColor];
self.extensionViewContainer.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleBottomMargin;
self.extensionController = [[TLYShyViewController alloc] init];
self.extensionController.view = self.extensionViewContainer;
self.extensionController.parent = self.navBarController;
/* hierarchy setup */
/* StatusBar <-- navbar <-->> extension <--> scrollView
*/
self.navBarController.parent = self.statusBarController;
self.navBarController.child = self.extensionController;
self.navBarController.subShyController = self.extensionController;
self.extensionController.parent = self.navBarController;
self.extensionController.child = self.scrollViewController;
self.scrollViewController.parent = self.extensionController;
/* Notification helpers */
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(applicationDidBecomeActive:)
name:UIApplicationDidBecomeActiveNotification
@ -170,7 +110,7 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
{
_scrollView.delegate = _delegateProxy.originalDelegate;
}
[[NSNotificationCenter defaultCenter] removeObserver:self];
[_scrollView removeObserver:self forKeyPath:@"contentSize" context:kTLYShyNavBarManagerKVOContext];
}
@ -180,37 +120,55 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
- (void)setViewController:(UIViewController *)viewController
{
_viewController = viewController;
if ([viewController isKindOfClass:[UITableViewController class]]
|| [viewController.view isKindOfClass:[UITableViewController class]])
{
NSLog(@"*** WARNING: Please consider using a UIViewController with a UITableView as a subview ***");
}
UIView *navbar = viewController.navigationController.navigationBar;
NSAssert(navbar != nil, @"You are using the component wrong... Please see the README file.");
NSAssert(navbar != nil, @"Please make sure the viewController is already attached to a navigation controller.");
viewController.extendedLayoutIncludesOpaqueBars = YES;
[self.extensionViewContainer removeFromSuperview];
[self.viewController.view addSubview:self.extensionViewContainer];
self.navBarController.view = navbar;
[self layoutViews];
}
- (void)setScrollView:(UIScrollView *)scrollView
{
[_scrollView removeObserver:self forKeyPath:@"contentSize" context:kTLYShyNavBarManagerKVOContext];
if (_scrollView.delegate == self.delegateProxy)
{
_scrollView.delegate = self.delegateProxy.originalDelegate;
}
_scrollView = scrollView;
self.scrollViewController.scrollView = scrollView;
NSUInteger index = [scrollView.subviews indexOfObjectPassingTest:^BOOL (id obj, NSUInteger idx, BOOL *stop) {
return [obj isKindOfClass:[UIRefreshControl class]];
}];
if (index != NSNotFound) {
self.scrollViewController.refreshControl = [scrollView.subviews objectAtIndex:index];
}
if (_scrollView.delegate != self.delegateProxy)
{
self.delegateProxy.originalDelegate = _scrollView.delegate;
_scrollView.delegate = (id)self.delegateProxy;
}
[self cleanup];
[self layoutViews];
[_scrollView addObserver:self forKeyPath:@"contentSize" options:0 context:kTLYShyNavBarManagerKVOContext];
}
@ -258,6 +216,25 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
self.extensionController.sticky = stickyExtensionView;
}
- (BOOL)handleStatusBar
{
return self.navBarController.handleStatusBar;
}
- (void)setHandleStatusBar:(BOOL)handleStatusBar
{
self.navBarController.handleStatusBar = handleStatusBar;
}
- (BOOL)contracted
{
return self.navBarController.contracted;
}
- (BOOL)expanded
{
return self.navBarController.expanded;
}
#pragma mark - Private methods
@ -265,7 +242,7 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
{
CGRect scrollFrame = UIEdgeInsetsInsetRect(self.scrollView.bounds, self.scrollView.contentInset);
CGFloat scrollableAmount = self.scrollView.contentSize.height - CGRectGetHeight(scrollFrame);
return (scrollableAmount > self.navBarController.totalHeight);
return (scrollableAmount > [self.extensionController calculateTotalHeightRecursively]);
}
- (BOOL)_shouldHandleScrolling
@ -274,6 +251,7 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
{
return NO;
}
return (self.isViewControllerVisible && [self _scrollViewIsSuffecientlyLong]);
}
@ -283,7 +261,7 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
{
return;
}
if (!isnan(self.previousYOffset))
{
// 1 - Calculate the delta
@ -295,50 +273,69 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
{
deltaY = MIN(0, deltaY - (self.previousYOffset - start));
}
/* rounding to resolve a dumb issue with the contentOffset value */
CGFloat end = floorf(self.scrollView.contentSize.height - CGRectGetHeight(self.scrollView.bounds) + self.scrollView.contentInset.bottom - 0.5f);
if (self.previousYOffset > end && deltaY > 0)
{
deltaY = MAX(0, deltaY - self.previousYOffset + end);
}
// 3 - Update contracting variable
if (fabs(deltaY) > FLT_EPSILON)
{
self.contracting = deltaY < 0;
}
// 4 - Check if contracting state changed, and do stuff if so
if (self.isContracting != self.previousContractionState)
if (self.contracting != self.previousContractionState)
{
self.previousContractionState = self.isContracting;
self.previousContractionState = self.contracting;
self.resistanceConsumed = 0;
}
// GTH: Calculate the exact point to avoid expansion resistance
// CGFloat statusBarHeight = [self.statusBarController calculateTotalHeightRecursively];
// 5 - Apply resistance
if (self.isContracting)
// 5.1 - Always apply resistance when contracting
if (self.contracting)
{
CGFloat availableResistance = self.contractionResistance - self.resistanceConsumed;
self.resistanceConsumed = MIN(self.contractionResistance, self.resistanceConsumed - deltaY);
deltaY = MIN(0, availableResistance + deltaY);
}
else if (self.scrollView.contentOffset.y > -AACStatusBarHeight(self.viewController))
// 5.2 - Only apply resistance if expanding above the status bar
else if (self.scrollView.contentOffset.y > 0)
{
CGFloat availableResistance = self.expansionResistance - self.resistanceConsumed;
self.resistanceConsumed = MIN(self.expansionResistance, self.resistanceConsumed + deltaY);
deltaY = MAX(0, deltaY - availableResistance);
}
// 6 - Update the navigation bar shyViewController
self.navBarController.fadeBehavior = (TLYShyNavViewControllerFade)self.fadeBehavior;
self.navBarController.fadeBehavior = self.fadeBehavior;
// 7 - Inform the delegate if needed
CGFloat maxNavY = CGRectGetMaxY(self.navBarController.view.frame);
CGFloat maxExtensionY = CGRectGetMaxY(self.extensionViewContainer.frame);
CGFloat visibleTop;
if (self.extensionViewContainer.hidden) {
visibleTop = maxNavY;
} else {
visibleTop = MAX(maxNavY, maxExtensionY);
}
if (visibleTop == self.statusBarController.calculateTotalHeightRecursively) {
if ([self.delegate respondsToSelector:@selector(shyNavBarManagerDidBecomeFullyContracted:)]) {
[self.delegate shyNavBarManagerDidBecomeFullyContracted:self];
}
}
[self.navBarController updateYOffset:deltaY];
}
self.previousYOffset = self.scrollView.contentOffset.y;
}
@ -348,18 +345,26 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
{
return;
}
__weak __typeof(self) weakSelf;
void (^completion)() = ^
{
__typeof(self) strongSelf = self;
if (strongSelf) {
if (strongSelf.contracting) {
if ([strongSelf.delegate respondsToSelector:@selector(shyNavBarManagerDidFinishContracting:)]) {
[strongSelf.delegate shyNavBarManagerDidFinishContracting:strongSelf];
}
} else {
if ([strongSelf.delegate respondsToSelector:@selector(shyNavBarManagerDidFinishExpanding:)]) {
[strongSelf.delegate shyNavBarManagerDidFinishExpanding:strongSelf];
}
}
}
};
self.resistanceConsumed = 0;
CGFloat deltaY = [self.navBarController snap:self.isContracting];
CGPoint newContentOffset = self.scrollView.contentOffset;
newContentOffset.y -= deltaY;
[UIView animateWithDuration:0.2
animations:^{
self.scrollView.contentOffset = newContentOffset;
}];
[self.navBarController snap:self.contracting completion:completion];
}
#pragma mark - KVO
@ -390,12 +395,12 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
{
[_extensionView removeFromSuperview];
_extensionView = view;
CGRect bounds = view.frame;
bounds.origin = CGPointZero;
view.frame = bounds;
self.extensionViewContainer.frame = bounds;
[self.extensionViewContainer addSubview:view];
self.extensionViewContainer.userInteractionEnabled = view.userInteractionEnabled;
@ -416,28 +421,28 @@ static void * const kTLYShyNavBarManagerKVOContext = (void*)&kTLYShyNavBarManage
- (void)layoutViews
{
UIEdgeInsets scrollInsets = self.scrollView.contentInset;
scrollInsets.top = self.extensionController.viewMaxY;
if (UIEdgeInsetsEqualToEdgeInsets(scrollInsets, self.previousScrollInsets))
if (fabs([self.scrollViewController updateLayoutIfNeeded]) > FLT_EPSILON)
{
return;
[self.navBarController expand];
[self.extensionViewContainer.superview bringSubviewToFront:self.extensionViewContainer];
}
self.previousScrollInsets = scrollInsets;
[self.navBarController expand];
[self.extensionViewContainer.superview bringSubviewToFront:self.extensionViewContainer];
[self.scrollView tly_smartSetInsets:scrollInsets];
}
- (void)cleanup
{
[self.navBarController expand];
self.previousYOffset = NAN;
self.previousScrollInsets = UIEdgeInsetsZero;
}
- (void)expandWithCompletion:(void (^)())completion
{
[UIView animateWithDuration:0.2 animations:^ {
[self cleanup];
} completion:^(BOOL finished) {
if (completion) {
completion();
}
}];
}
#pragma mark - UIScrollViewDelegate methods
@ -518,12 +523,26 @@ static char shyNavBarManagerKey;
[self tly_swizzledViewWillDisappear:animated];
}
#pragma mark - Public methods
- (BOOL)isShyNavBarManagerPresent
{
return [self _internalShyNavBarManager] != nil;
}
- (void)setShyNavBarManager:(TLYShyNavBarManager *)shyNavBarManager
viewController:(UIViewController *)viewController
{
NSAssert(viewController != nil, @"viewController must not be nil!");
shyNavBarManager.viewController = viewController;
objc_setAssociatedObject(self, &shyNavBarManagerKey, shyNavBarManager, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}
#pragma mark - Properties
- (void)setShyNavBarManager:(TLYShyNavBarManager *)shyNavBarManager
{
shyNavBarManager.viewController = self;
objc_setAssociatedObject(self, &shyNavBarManagerKey, shyNavBarManager, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
[self setShyNavBarManager:shyNavBarManager viewController:self];
}
- (TLYShyNavBarManager *)shyNavBarManager
@ -534,7 +553,7 @@ static char shyNavBarManagerKey;
shyNavBarManager = [[TLYShyNavBarManager alloc] init];
self.shyNavBarManager = shyNavBarManager;
}
return shyNavBarManager;
}
@ -548,30 +567,3 @@ static char shyNavBarManagerKey;
@end
#pragma mark - Deprecated -
@implementation TLYShyNavBarManager (Deprecated)
- (BOOL)isAlphaFadeEnabled
{
return self.fadeBehavior != TLYShyNavBarFadeDisabled;
}
- (void)setAlphaFadeEnabled:(BOOL)alphaFadeEnabled
{
self.fadeBehavior = alphaFadeEnabled ? TLYShyNavBarFadeSubviews : TLYShyNavBarFadeDisabled;
}
- (BOOL)isAlphaFadeEntireNavBarEnabled
{
return self.fadeBehavior != TLYShyNavBarFadeNavbar;
}
- (void)setAlphaFadeEntireNavBar:(BOOL)alphaFadeEntireNavBar
{
self.fadeBehavior = alphaFadeEntireNavBar ? TLYShyNavBarFadeNavbar : TLYShyNavBarFadeDisabled;
}
@end

View File

@ -7,7 +7,14 @@
objects = {
/* Begin PBXBuildFile section */
8268FA02194C926F004EC0E4 /* TLYShyViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8268FA01194C926F004EC0E4 /* TLYShyViewController.m */; };
821A4D771BF6CCEC00E675DB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 821A4D761BF6CCEC00E675DB /* LaunchScreen.storyboard */; };
821A4D7B1BF6D01600E675DB /* TLYTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 821A4D7A1BF6D01600E675DB /* TLYTableViewController.m */; };
821A4D7F1BF6D70100E675DB /* TLYShyStatusBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = 821A4D7E1BF6D70100E675DB /* TLYShyStatusBarController.m */; };
821A4D841BF6D89E00E675DB /* TLYShyViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 821A4D831BF6D89E00E675DB /* TLYShyViewController.m */; };
821A4D881BF6DA2700E675DB /* UIScrollView+Helpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 821A4D871BF6DA2700E675DB /* UIScrollView+Helpers.m */; };
821A4D8B1BF6E5D400E675DB /* TLYDelegateProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = 821A4D8A1BF6E5D400E675DB /* TLYDelegateProxy.m */; };
821A4D901BF6F3DF00E675DB /* TLYShyScrollViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 821A4D8F1BF6F3DF00E675DB /* TLYShyScrollViewController.m */; };
8262C8551BD730DD00B610A0 /* TLYCollectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8262C8541BD730DD00B610A0 /* TLYCollectionViewController.m */; };
8268FA13194DBA58004EC0E4 /* TLYShyNavBarManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 8268FA12194DBA58004EC0E4 /* TLYShyNavBarManager.m */; };
828F57201949C37B009EB8DD /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 828F571F1949C37B009EB8DD /* Foundation.framework */; };
828F57221949C37B009EB8DD /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 828F57211949C37B009EB8DD /* CoreGraphics.framework */; };
@ -24,8 +31,7 @@
828F57491949C37B009EB8DD /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 828F57471949C37B009EB8DD /* InfoPlist.strings */; };
828F574B1949C37B009EB8DD /* TLYShyNavBarDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 828F574A1949C37B009EB8DD /* TLYShyNavBarDemoTests.m */; };
829FEE001957DF620017E186 /* NSObject+TLYSwizzlingHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 829FEDFF1957DF620017E186 /* NSObject+TLYSwizzlingHelpers.m */; };
82A893861BC6F939004C37E3 /* TLYMenuTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 82A893851BC6F939004C37E3 /* TLYMenuTableViewController.m */; settings = {ASSET_TAGS = (); }; };
82B01ED3195D449F00C3C10C /* TLYDelegateProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = 82B01ED2195D449F00C3C10C /* TLYDelegateProxy.m */; };
82A893861BC6F939004C37E3 /* TLYMenuTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 82A893851BC6F939004C37E3 /* TLYMenuTableViewController.m */; };
82C882091955FDA60046C49D /* UIViewController+BetterLayoutGuides.m in Sources */ = {isa = PBXBuildFile; fileRef = 82C882081955FDA60046C49D /* UIViewController+BetterLayoutGuides.m */; };
/* End PBXBuildFile section */
@ -40,8 +46,24 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
8268FA00194C926F004EC0E4 /* TLYShyViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyViewController.h; sourceTree = "<group>"; };
8268FA01194C926F004EC0E4 /* TLYShyViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYShyViewController.m; sourceTree = "<group>"; };
821A4D761BF6CCEC00E675DB /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = "<group>"; };
821A4D791BF6D01600E675DB /* TLYTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYTableViewController.h; sourceTree = "<group>"; };
821A4D7A1BF6D01600E675DB /* TLYTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYTableViewController.m; sourceTree = "<group>"; };
821A4D7D1BF6D70100E675DB /* TLYShyStatusBarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyStatusBarController.h; sourceTree = "<group>"; };
821A4D7E1BF6D70100E675DB /* TLYShyStatusBarController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYShyStatusBarController.m; sourceTree = "<group>"; };
821A4D801BF6D72900E675DB /* TLYShyParent.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TLYShyParent.h; sourceTree = "<group>"; };
821A4D821BF6D89E00E675DB /* TLYShyViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyViewController.h; sourceTree = "<group>"; };
821A4D831BF6D89E00E675DB /* TLYShyViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYShyViewController.m; sourceTree = "<group>"; };
821A4D861BF6DA2700E675DB /* UIScrollView+Helpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIScrollView+Helpers.h"; sourceTree = "<group>"; };
821A4D871BF6DA2700E675DB /* UIScrollView+Helpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIScrollView+Helpers.m"; sourceTree = "<group>"; };
821A4D891BF6E5D400E675DB /* TLYDelegateProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYDelegateProxy.h; sourceTree = "<group>"; };
821A4D8A1BF6E5D400E675DB /* TLYDelegateProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYDelegateProxy.m; sourceTree = "<group>"; };
821A4D8C1BF6E5F300E675DB /* TLYShyNavBarFade.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TLYShyNavBarFade.h; sourceTree = "<group>"; };
821A4D8D1BF6EDE800E675DB /* TLYShyChild.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TLYShyChild.h; sourceTree = "<group>"; };
821A4D8E1BF6F3DF00E675DB /* TLYShyScrollViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyScrollViewController.h; sourceTree = "<group>"; };
821A4D8F1BF6F3DF00E675DB /* TLYShyScrollViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYShyScrollViewController.m; sourceTree = "<group>"; };
8262C8531BD730DD00B610A0 /* TLYCollectionViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYCollectionViewController.h; sourceTree = "<group>"; };
8262C8541BD730DD00B610A0 /* TLYCollectionViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYCollectionViewController.m; sourceTree = "<group>"; };
8268FA11194DBA58004EC0E4 /* TLYShyNavBarManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyNavBarManager.h; sourceTree = "<group>"; };
8268FA12194DBA58004EC0E4 /* TLYShyNavBarManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYShyNavBarManager.m; sourceTree = "<group>"; };
828F571C1949C37B009EB8DD /* TLYShyNavBarDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TLYShyNavBarDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
@ -67,8 +89,6 @@
829FEDFF1957DF620017E186 /* NSObject+TLYSwizzlingHelpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+TLYSwizzlingHelpers.m"; sourceTree = "<group>"; };
82A893841BC6F939004C37E3 /* TLYMenuTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYMenuTableViewController.h; sourceTree = "<group>"; };
82A893851BC6F939004C37E3 /* TLYMenuTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYMenuTableViewController.m; sourceTree = "<group>"; };
82B01ED1195D449F00C3C10C /* TLYDelegateProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYDelegateProxy.h; sourceTree = "<group>"; };
82B01ED2195D449F00C3C10C /* TLYDelegateProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYDelegateProxy.m; sourceTree = "<group>"; };
82C882071955FDA60046C49D /* UIViewController+BetterLayoutGuides.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIViewController+BetterLayoutGuides.h"; sourceTree = "<group>"; };
82C882081955FDA60046C49D /* UIViewController+BetterLayoutGuides.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIViewController+BetterLayoutGuides.m"; sourceTree = "<group>"; };
/* End PBXFileReference section */
@ -97,6 +117,39 @@
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
821A4D781BF6CFF200E675DB /* TableView */ = {
isa = PBXGroup;
children = (
821A4D791BF6D01600E675DB /* TLYTableViewController.h */,
821A4D7A1BF6D01600E675DB /* TLYTableViewController.m */,
);
name = TableView;
sourceTree = "<group>";
};
821A4D7C1BF6D6D200E675DB /* ShyControllers */ = {
isa = PBXGroup;
children = (
821A4D801BF6D72900E675DB /* TLYShyParent.h */,
821A4D8D1BF6EDE800E675DB /* TLYShyChild.h */,
821A4D7D1BF6D70100E675DB /* TLYShyStatusBarController.h */,
821A4D7E1BF6D70100E675DB /* TLYShyStatusBarController.m */,
821A4D821BF6D89E00E675DB /* TLYShyViewController.h */,
821A4D831BF6D89E00E675DB /* TLYShyViewController.m */,
821A4D8E1BF6F3DF00E675DB /* TLYShyScrollViewController.h */,
821A4D8F1BF6F3DF00E675DB /* TLYShyScrollViewController.m */,
);
path = ShyControllers;
sourceTree = "<group>";
};
8262C8521BD730CB00B610A0 /* CollectionView */ = {
isa = PBXGroup;
children = (
8262C8531BD730DD00B610A0 /* TLYCollectionViewController.h */,
8262C8541BD730DD00B610A0 /* TLYCollectionViewController.m */,
);
name = CollectionView;
sourceTree = "<group>";
};
828F57131949C37B009EB8DD = {
isa = PBXGroup;
children = (
@ -131,6 +184,8 @@
828F57251949C37B009EB8DD /* TLYShyNavBarDemo */ = {
isa = PBXGroup;
children = (
821A4D781BF6CFF200E675DB /* TableView */,
8262C8521BD730CB00B610A0 /* CollectionView */,
828F572E1949C37B009EB8DD /* TLYAppDelegate.h */,
828F572F1949C37B009EB8DD /* TLYAppDelegate.m */,
828F57311949C37B009EB8DD /* Main.storyboard */,
@ -148,6 +203,7 @@
isa = PBXGroup;
children = (
828F57271949C37B009EB8DD /* TLYShyNavBarDemo-Info.plist */,
821A4D761BF6CCEC00E675DB /* LaunchScreen.storyboard */,
828F57281949C37B009EB8DD /* InfoPlist.strings */,
828F572B1949C37B009EB8DD /* main.m */,
828F572D1949C37B009EB8DD /* TLYShyNavBarDemo-Prefix.pch */,
@ -176,13 +232,11 @@
828F57541949C381009EB8DD /* TLYShyNavBar */ = {
isa = PBXGroup;
children = (
821A4D7C1BF6D6D200E675DB /* ShyControllers */,
82B01EDB195D580000C3C10C /* Categories */,
821A4D8C1BF6E5F300E675DB /* TLYShyNavBarFade.h */,
8268FA11194DBA58004EC0E4 /* TLYShyNavBarManager.h */,
8268FA12194DBA58004EC0E4 /* TLYShyNavBarManager.m */,
8268FA00194C926F004EC0E4 /* TLYShyViewController.h */,
8268FA01194C926F004EC0E4 /* TLYShyViewController.m */,
82B01ED1195D449F00C3C10C /* TLYDelegateProxy.h */,
82B01ED2195D449F00C3C10C /* TLYDelegateProxy.m */,
);
name = TLYShyNavBar;
path = ../TLYShyNavBar;
@ -191,10 +245,14 @@
82B01EDB195D580000C3C10C /* Categories */ = {
isa = PBXGroup;
children = (
821A4D891BF6E5D400E675DB /* TLYDelegateProxy.h */,
821A4D8A1BF6E5D400E675DB /* TLYDelegateProxy.m */,
82C882071955FDA60046C49D /* UIViewController+BetterLayoutGuides.h */,
82C882081955FDA60046C49D /* UIViewController+BetterLayoutGuides.m */,
829FEDFE1957DF620017E186 /* NSObject+TLYSwizzlingHelpers.h */,
829FEDFF1957DF620017E186 /* NSObject+TLYSwizzlingHelpers.m */,
821A4D861BF6DA2700E675DB /* UIScrollView+Helpers.h */,
821A4D871BF6DA2700E675DB /* UIScrollView+Helpers.m */,
);
path = Categories;
sourceTree = "<group>";
@ -277,6 +335,7 @@
buildActionMask = 2147483647;
files = (
828F57381949C37B009EB8DD /* Images.xcassets in Resources */,
821A4D771BF6CCEC00E675DB /* LaunchScreen.storyboard in Resources */,
828F572A1949C37B009EB8DD /* InfoPlist.strings in Resources */,
828F57331949C37B009EB8DD /* Main.storyboard in Resources */,
);
@ -298,14 +357,19 @@
buildActionMask = 2147483647;
files = (
82A893861BC6F939004C37E3 /* TLYMenuTableViewController.m in Sources */,
821A4D8B1BF6E5D400E675DB /* TLYDelegateProxy.m in Sources */,
821A4D7B1BF6D01600E675DB /* TLYTableViewController.m in Sources */,
8268FA13194DBA58004EC0E4 /* TLYShyNavBarManager.m in Sources */,
82C882091955FDA60046C49D /* UIViewController+BetterLayoutGuides.m in Sources */,
821A4D7F1BF6D70100E675DB /* TLYShyStatusBarController.m in Sources */,
828F57301949C37B009EB8DD /* TLYAppDelegate.m in Sources */,
82B01ED3195D449F00C3C10C /* TLYDelegateProxy.m in Sources */,
8268FA02194C926F004EC0E4 /* TLYShyViewController.m in Sources */,
829FEE001957DF620017E186 /* NSObject+TLYSwizzlingHelpers.m in Sources */,
821A4D901BF6F3DF00E675DB /* TLYShyScrollViewController.m in Sources */,
828F57361949C37B009EB8DD /* TLYViewController.m in Sources */,
821A4D841BF6D89E00E675DB /* TLYShyViewController.m in Sources */,
8262C8551BD730DD00B610A0 /* TLYCollectionViewController.m in Sources */,
828F572C1949C37B009EB8DD /* main.m in Sources */,
821A4D881BF6DA2700E675DB /* UIScrollView+Helpers.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};

View File

@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8191" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="7bU-2Z-BIA">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9532" systemVersion="15B42" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="7bU-2Z-BIA">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8154"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
</dependencies>
<scenes>
<!--View Controller-->
@ -17,10 +18,10 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="d0u-JZ-WMw">
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="d0u-JZ-WMw">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="sample" translatesAutoresizingMaskIntoConstraints="NO" id="RWp-Z1-nNI">
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="sample" translatesAutoresizingMaskIntoConstraints="NO" id="RWp-Z1-nNI">
<rect key="frame" x="0.0" y="0.0" width="320" height="800"/>
</imageView>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="RdB-YX-eef">
@ -34,6 +35,12 @@
</connections>
</button>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="RWp-Z1-nNI" secondAttribute="bottom" constant="-232" id="A4N-1N-ByC"/>
<constraint firstItem="RWp-Z1-nNI" firstAttribute="top" secondItem="d0u-JZ-WMw" secondAttribute="top" id="Aws-4X-zhy"/>
<constraint firstItem="RWp-Z1-nNI" firstAttribute="leading" secondItem="d0u-JZ-WMw" secondAttribute="leading" id="I70-Es-KW4"/>
<constraint firstAttribute="trailing" secondItem="RWp-Z1-nNI" secondAttribute="trailing" id="nUd-mM-q10"/>
</constraints>
<connections>
<outlet property="delegate" destination="vXZ-lx-hvc" id="kxr-NG-k4Q"/>
</connections>
@ -57,7 +64,7 @@
</objects>
<point key="canvasLocation" x="-1" y="-532"/>
</scene>
<!--Menu Table View Controller-->
<!--Title-->
<scene sceneID="iUm-Up-GyM">
<objects>
<tableViewController id="bXL-dd-VeI" customClass="TLYMenuTableViewController" sceneMemberID="viewController">
@ -77,7 +84,7 @@
<rect key="frame" x="15" y="0.0" width="270" height="43.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
@ -97,7 +104,7 @@
<rect key="frame" x="15" y="0.0" width="270" height="43.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
@ -117,7 +124,7 @@
<rect key="frame" x="15" y="0.0" width="270" height="43.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
@ -137,7 +144,7 @@
<rect key="frame" x="15" y="0.0" width="270" height="43.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
@ -157,7 +164,7 @@
<rect key="frame" x="15" y="0.0" width="270" height="43.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
@ -166,39 +173,65 @@
<segue destination="YrI-BX-jJR" kind="push" id="6AH-6S-diz"/>
</connections>
</tableViewCell>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="5" textLabel="qz8-f8-ztz" style="IBUITableViewCellStyleDefault" id="cog-xO-RM8">
<tableViewCell contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" reuseIdentifier="5" textLabel="qz8-f8-ztz" style="IBUITableViewCellStyleDefault" id="cog-xO-RM8">
<rect key="frame" x="0.0" y="306" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="cog-xO-RM8" id="bqe-Oi-QQK">
<rect key="frame" x="0.0" y="0.0" width="320" height="43.5"/>
<rect key="frame" x="0.0" y="0.0" width="287" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="TODO: Test UITableView" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="qz8-f8-ztz">
<rect key="frame" x="15" y="0.0" width="290" height="43.5"/>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Test UITableView" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="qz8-f8-ztz">
<rect key="frame" x="15" y="0.0" width="270" height="43.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</tableViewCellContentView>
<connections>
<segue destination="jai-8C-KhC" kind="push" id="jib-YH-I4H"/>
</connections>
</tableViewCell>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="6" textLabel="JCj-eZ-ePK" style="IBUITableViewCellStyleDefault" id="lDx-31-RTM">
<tableViewCell contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" reuseIdentifier="6" textLabel="JCj-eZ-ePK" style="IBUITableViewCellStyleDefault" id="lDx-31-RTM">
<rect key="frame" x="0.0" y="350" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="lDx-31-RTM" id="Pch-9t-ngw">
<rect key="frame" x="0.0" y="0.0" width="320" height="43.5"/>
<rect key="frame" x="0.0" y="0.0" width="287" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="TODO: Test UICollectionView" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="JCj-eZ-ePK">
<rect key="frame" x="15" y="0.0" width="290" height="43.5"/>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Test UICollectionView" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="JCj-eZ-ePK">
<rect key="frame" x="15" y="0.0" width="270" height="43.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</tableViewCellContentView>
<connections>
<segue destination="4gk-yU-wN3" kind="push" id="POL-mj-jIP"/>
</connections>
</tableViewCell>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" accessoryType="disclosureIndicator" indentationWidth="10" reuseIdentifier="7" textLabel="CgM-Go-0Tl" style="IBUITableViewCellStyleDefault" id="iMg-k0-Aaw">
<rect key="frame" x="0.0" y="394" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="iMg-k0-Aaw" id="5e1-WH-Lge">
<rect key="frame" x="0.0" y="0.0" width="287" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Test Short ScrollView" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="CgM-Go-0Tl">
<rect key="frame" x="15" y="0.0" width="270" height="43.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</tableViewCellContentView>
<connections>
<segue destination="aW5-sR-mZf" kind="push" id="2z9-bH-jBE"/>
</connections>
</tableViewCell>
</prototypes>
<connections>
@ -206,7 +239,13 @@
<outlet property="delegate" destination="bXL-dd-VeI" id="RHJ-6l-PeV"/>
</connections>
</tableView>
<navigationItem key="navigationItem" id="MiQ-62-gJz"/>
<navigationItem key="navigationItem" title="Title" id="hzz-9a-rn9">
<barButtonItem key="rightBarButtonItem" title="😏" id="57S-h4-ET8">
<connections>
<action selector="translucencyToggled:" destination="bXL-dd-VeI" id="0Uk-Xe-2RZ"/>
</connections>
</barButtonItem>
</navigationItem>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Ixv-On-SGD" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
@ -240,10 +279,10 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="vbb-xa-3sQ">
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vbb-xa-3sQ">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="sample" translatesAutoresizingMaskIntoConstraints="NO" id="ZgL-2W-u0P">
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="sample" translatesAutoresizingMaskIntoConstraints="NO" id="ZgL-2W-u0P">
<rect key="frame" x="0.0" y="0.0" width="320" height="800"/>
</imageView>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tCN-lm-psW">
@ -257,6 +296,12 @@
</connections>
</button>
</subviews>
<constraints>
<constraint firstItem="ZgL-2W-u0P" firstAttribute="top" secondItem="vbb-xa-3sQ" secondAttribute="top" id="Gog-4t-mWr"/>
<constraint firstAttribute="trailing" secondItem="ZgL-2W-u0P" secondAttribute="trailing" id="HRx-CS-Oza"/>
<constraint firstItem="ZgL-2W-u0P" firstAttribute="leading" secondItem="vbb-xa-3sQ" secondAttribute="leading" id="UXV-wK-XtE"/>
<constraint firstAttribute="bottom" secondItem="ZgL-2W-u0P" secondAttribute="bottom" constant="-232" id="vRu-ew-sLd"/>
</constraints>
<connections>
<outlet property="delegate" destination="K7e-Au-F1w" id="Ljb-VD-J2V"/>
</connections>
@ -283,6 +328,102 @@
</objects>
<point key="canvasLocation" x="783" y="-532"/>
</scene>
<!--Collection View Controller-->
<scene sceneID="PhO-85-s6k">
<objects>
<collectionViewController id="4gk-yU-wN3" customClass="TLYCollectionViewController" sceneMemberID="viewController">
<collectionView key="view" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="prototypes" id="Kig-Vq-sPc">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="0.97254901959999995" green="0.97254901959999995" blue="0.97254901959999995" alpha="1" colorSpace="calibratedRGB"/>
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="vIy-T8-j61">
<size key="itemSize" width="320" height="50"/>
<size key="headerReferenceSize" width="0.0" height="0.0"/>
<size key="footerReferenceSize" width="0.0" height="0.0"/>
<inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
</collectionViewFlowLayout>
<cells>
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="Cell" id="mxc-A2-oU2">
<rect key="frame" x="0.0" y="64" width="320" height="50"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="320" height="50"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" tag="777" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0Vf-lE-VWT">
<rect key="frame" x="8" y="14" width="42" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
</view>
<constraints>
<constraint firstAttribute="leadingMargin" secondItem="0Vf-lE-VWT" secondAttribute="leading" id="hNm-aF-Ss8"/>
<constraint firstItem="0Vf-lE-VWT" firstAttribute="centerY" secondItem="mxc-A2-oU2" secondAttribute="centerY" id="lhQ-IH-0UI"/>
</constraints>
</collectionViewCell>
</cells>
<connections>
<outlet property="dataSource" destination="4gk-yU-wN3" id="22b-GS-Mud"/>
<outlet property="delegate" destination="4gk-yU-wN3" id="e1K-0B-2eC"/>
</connections>
</collectionView>
<navigationItem key="navigationItem" id="TxI-1J-d2i"/>
</collectionViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="rvW-nN-PLP" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-1016" y="566"/>
</scene>
<!--Table View Controller-->
<scene sceneID="XaB-vN-5Qi">
<objects>
<viewController id="jai-8C-KhC" customClass="TLYTableViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="XjM-9z-Uam"/>
<viewControllerLayoutGuide type="bottom" id="sgb-uZ-rF7"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="MSO-HM-o3C">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="zXM-Us-jtQ">
<rect key="frame" x="0.0" y="64" width="320" height="504"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Cell" id="NX5-B0-7pf">
<rect key="frame" x="0.0" y="92" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="NX5-B0-7pf" id="ITe-rA-1zD">
<rect key="frame" x="0.0" y="0.0" width="320" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
</tableViewCellContentView>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="jai-8C-KhC" id="9EV-wK-KXA"/>
<outlet property="delegate" destination="jai-8C-KhC" id="WN1-JN-N1W"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="zXM-Us-jtQ" firstAttribute="leading" secondItem="MSO-HM-o3C" secondAttribute="leading" id="YGz-6i-F6M"/>
<constraint firstAttribute="right" secondItem="zXM-Us-jtQ" secondAttribute="right" id="g44-Ka-P9F"/>
<constraint firstItem="sgb-uZ-rF7" firstAttribute="top" secondItem="zXM-Us-jtQ" secondAttribute="bottom" id="hhN-uq-WOi"/>
<constraint firstItem="zXM-Us-jtQ" firstAttribute="top" secondItem="XjM-9z-Uam" secondAttribute="bottom" id="t3N-xs-ko0"/>
</constraints>
</view>
<navigationItem key="navigationItem" id="l8b-W3-Ehj"/>
<connections>
<outlet property="tableView" destination="zXM-Us-jtQ" id="1OR-fS-EoQ"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="37F-q7-Zc2" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-670" y="566"/>
</scene>
<!--View Controller-->
<scene sceneID="WAx-ee-jTN">
<objects>
@ -295,10 +436,10 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="6Zp-9c-eDS">
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6Zp-9c-eDS">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="sample" translatesAutoresizingMaskIntoConstraints="NO" id="ZOG-dK-zfA">
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="sample" translatesAutoresizingMaskIntoConstraints="NO" id="ZOG-dK-zfA">
<rect key="frame" x="0.0" y="0.0" width="320" height="800"/>
</imageView>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="cyG-i1-1i9">
@ -312,6 +453,12 @@
</connections>
</button>
</subviews>
<constraints>
<constraint firstItem="ZOG-dK-zfA" firstAttribute="top" secondItem="6Zp-9c-eDS" secondAttribute="top" id="Del-af-CgC"/>
<constraint firstItem="ZOG-dK-zfA" firstAttribute="leading" secondItem="6Zp-9c-eDS" secondAttribute="leading" id="KYS-x9-Jad"/>
<constraint firstAttribute="trailing" secondItem="ZOG-dK-zfA" secondAttribute="trailing" id="SMj-gB-5vd"/>
<constraint firstAttribute="bottom" secondItem="ZOG-dK-zfA" secondAttribute="bottom" constant="-232" id="kj5-VT-Ir7"/>
</constraints>
<connections>
<outlet property="delegate" destination="YrI-BX-jJR" id="UNz-BN-zMp"/>
</connections>
@ -353,10 +500,10 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="p6u-pz-ec0">
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="p6u-pz-ec0">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="sample" translatesAutoresizingMaskIntoConstraints="NO" id="iiY-8B-e2T">
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="sample" translatesAutoresizingMaskIntoConstraints="NO" id="iiY-8B-e2T">
<rect key="frame" x="0.0" y="0.0" width="320" height="800"/>
</imageView>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Sz2-8s-bu4">
@ -370,6 +517,12 @@
</connections>
</button>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="iiY-8B-e2T" secondAttribute="trailing" id="cJU-Wz-K3u"/>
<constraint firstAttribute="bottom" secondItem="iiY-8B-e2T" secondAttribute="bottom" constant="-232" id="rBn-gA-pFx"/>
<constraint firstItem="iiY-8B-e2T" firstAttribute="top" secondItem="p6u-pz-ec0" secondAttribute="top" id="t6e-3c-mYy"/>
<constraint firstItem="iiY-8B-e2T" firstAttribute="leading" secondItem="p6u-pz-ec0" secondAttribute="leading" id="yxg-zM-6BO"/>
</constraints>
<connections>
<outlet property="delegate" destination="7f1-kX-LN4" id="Em9-iO-CRq"/>
</connections>
@ -412,10 +565,10 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" ambiguous="YES" translatesAutoresizingMaskIntoConstraints="NO" id="gDa-ud-MJA">
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gDa-ud-MJA">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="sample" translatesAutoresizingMaskIntoConstraints="NO" id="53M-22-p92">
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="sample" translatesAutoresizingMaskIntoConstraints="NO" id="53M-22-p92">
<rect key="frame" x="0.0" y="0.0" width="320" height="800"/>
</imageView>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Vdy-g9-wQL">
@ -429,6 +582,12 @@
</connections>
</button>
</subviews>
<constraints>
<constraint firstItem="53M-22-p92" firstAttribute="leading" secondItem="gDa-ud-MJA" secondAttribute="leading" id="4Nm-kW-QPn"/>
<constraint firstAttribute="bottom" secondItem="53M-22-p92" secondAttribute="bottom" constant="-232" id="5Mh-2b-a9D"/>
<constraint firstItem="53M-22-p92" firstAttribute="top" secondItem="gDa-ud-MJA" secondAttribute="top" id="76q-JF-l7d"/>
<constraint firstAttribute="trailing" secondItem="53M-22-p92" secondAttribute="trailing" id="zr2-9G-qlL"/>
</constraints>
<connections>
<outlet property="delegate" destination="Vir-3r-RAn" id="zC7-46-HJO"/>
</connections>
@ -455,6 +614,57 @@
</objects>
<point key="canvasLocation" x="363" y="-532"/>
</scene>
<!--Table View Controller-->
<scene sceneID="RYz-v8-651">
<objects>
<viewController id="aW5-sR-mZf" customClass="TLYTableViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="2aT-xe-cs2"/>
<viewControllerLayoutGuide type="bottom" id="PvV-4v-hBz"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Trg-X5-aIb">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="Nlh-YW-jQ7">
<rect key="frame" x="0.0" y="64" width="335" height="504"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Cell" id="jHM-wp-EHl">
<rect key="frame" x="0.0" y="92" width="335" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="jHM-wp-EHl" id="mGW-Ao-Srl">
<rect key="frame" x="0.0" y="0.0" width="335" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
</tableViewCellContentView>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="aW5-sR-mZf" id="9EX-wv-kBv"/>
<outlet property="delegate" destination="aW5-sR-mZf" id="CHy-8R-ufT"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="Nlh-YW-jQ7" firstAttribute="left" secondItem="Trg-X5-aIb" secondAttribute="left" id="1rE-jk-8qx"/>
<constraint firstItem="PvV-4v-hBz" firstAttribute="top" secondItem="Nlh-YW-jQ7" secondAttribute="bottom" id="H5W-2J-f2D"/>
<constraint firstAttribute="right" secondItem="Nlh-YW-jQ7" secondAttribute="rightMargin" id="K6c-aA-di4"/>
<constraint firstItem="Nlh-YW-jQ7" firstAttribute="top" secondItem="2aT-xe-cs2" secondAttribute="bottom" id="oJF-s6-iWb"/>
</constraints>
</view>
<navigationItem key="navigationItem" id="uJw-Uj-Sb1"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="shortScrollView" value="YES"/>
</userDefinedRuntimeAttributes>
<connections>
<outlet property="tableView" destination="Nlh-YW-jQ7" id="Wk4-94-eKC"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="OFV-VU-PLS" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-331" y="566"/>
</scene>
</scenes>
<resources>
<image name="sample" width="320" height="800"/>

View File

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9060" systemVersion="14F1021" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9051"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright © 2015 Telly, Inc. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="obG-Y5-kRd">
<rect key="frame" x="20" y="559" width="560" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="TLYShyNavBarDemo" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
<rect key="frame" x="20" y="180" width="560" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="centerX" secondItem="obG-Y5-kRd" secondAttribute="centerX" id="5cz-MP-9tL"/>
<constraint firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
<constraint firstItem="obG-Y5-kRd" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" constant="20" symbolic="YES" id="SfN-ll-jLj"/>
<constraint firstAttribute="bottom" secondItem="obG-Y5-kRd" secondAttribute="bottom" constant="20" id="Y44-ml-fuU"/>
<constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
<constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" constant="20" symbolic="YES" id="x7j-FC-K8j"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>

View File

@ -0,0 +1,13 @@
//
// TLYCollectionViewController.h
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 10/20/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TLYCollectionViewController : UICollectionViewController
@end

View File

@ -0,0 +1,74 @@
//
// TLYCollectionViewController.m
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 10/20/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#import "TLYCollectionViewController.h"
@interface TLYCollectionViewController ()
@property (nonatomic, strong) NSArray *data;
@end
@implementation TLYCollectionViewController
static NSString * const reuseIdentifier = @"Cell";
- (void)viewDidLoad {
[super viewDidLoad];
self.data = @[@"No Game No Life",
@"Ookami Kodomo no Ame to Yuki",
@"Owari no Seraph",
@"Prince of Tennis",
@"Psycho-Pass",
@"Psycho-Pass 2",
@"School Rumble",
@"Sen to Chihiro no Kamikakushi",
@"Shijou Saikyou no Deshi Kenichi",
@"Shingeki no Kyojin",
@"Soul Eater",
@"Steins;Gate",
@"Summer Wars",
@"Sword Art Online",
@"Sword Art Online II",
@"Tenkuu no Shiro Laputa",
@"Toki wo Kakeru Shoujo",
@"Tokyo Ghoul",
@"Tonari no Totoro",
@"Uchuu Kyoudai",
@"Yakitate!! Japan",
@"Zankyou ",
];
UIView *view = view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), 40.f)];
view.backgroundColor = [UIColor redColor];
/* Library code */
self.shyNavBarManager.scrollView = self.collectionView;
/* Can then be remove by setting the ExtensionView to nil */
[self.shyNavBarManager setExtensionView:view];
}
#pragma mark <UICollectionViewDataSource>
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
return self.data.count;
}
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:reuseIdentifier forIndexPath:indexPath];
UILabel *label = (id)[cell viewWithTag:777];
label.text = self.data[indexPath.item];
return cell;
}
@end

View File

@ -29,7 +29,7 @@
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 7;
return 8;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
@ -38,4 +38,14 @@
return [tableView dequeueReusableCellWithIdentifier:cellId forIndexPath:indexPath];
}
#pragma mark - Action methods
- (IBAction)translucencyToggled:(id)sender
{
BOOL translucent = !self.navigationController.navigationBar.translucent;
self.navigationController.navigationBar.translucent = translucent;
[sender setTitle:translucent ? @"😏" : @"😎"];
}
@end

View File

@ -24,6 +24,8 @@
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>

View File

@ -0,0 +1,13 @@
//
// TLYTableViewController.h
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 11/13/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TLYTableViewController : UIViewController
@end

View File

@ -0,0 +1,63 @@
//
// TLYTableViewController.m
// TLYShyNavBarDemo
//
// Created by Mazyad Alabduljaleel on 11/13/15.
// Copyright © 2015 Telly, Inc. All rights reserved.
//
#import "TLYTableViewController.h"
@interface TLYTableViewController () <UITableViewDataSource, UITableViewDelegate>
@property (nonatomic, assign) IBInspectable BOOL shortScrollView;
@property (nonatomic, weak) IBOutlet UITableView *tableView;
@end
@implementation TLYTableViewController
#pragma mark - View Life Cycle
- (void)viewDidLoad
{
[super viewDidLoad];
UIView *view = view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), 40.f)];
view.backgroundColor = [UIColor redColor];
/* Library code */
self.shyNavBarManager.scrollView = self.tableView;
/* Can then be remove by setting the ExtensionView to nil */
[self.shyNavBarManager setExtensionView:view];
}
#pragma mark - UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return self.shortScrollView ? 1 : 6;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 5;
}
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
return @"Section Header";
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"
forIndexPath:indexPath];
cell.textLabel.text = @"Sample Data";
return cell;
}
@end

View File

@ -49,7 +49,7 @@
if (!self.disableExtensionView)
{
view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), 100.f)];
view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), 40.f)];
view.backgroundColor = [UIColor redColor];
UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];

View File

@ -3,14 +3,12 @@
// TLYShyNavBarSwiftDemo
//
// Created by Tony Nuzzi on 2/22/15.
// Copyright (c) 2015 Acktie, LLC. All rights reserved.
// Copyright (c) 2015 Telly, Inc. All rights reserved.
//
#ifndef TLYShyNavBarSwiftDemo_Bridging_Header_h
#define TLYShyNavBarSwiftDemo_Bridging_Header_h
#import "TLYShyNavBarManager.h"
#import "TLYShyViewController.h"
#import "TLYDelegateProxy.h"
#import "NSObject+TLYSwizzlingHelpers.h"
#import "UIViewController+BetterLayoutGuides.h"
#endif

View File

@ -7,17 +7,20 @@
objects = {
/* Begin PBXBuildFile section */
826F866D1BF8123D000F9216 /* NSObject+TLYSwizzlingHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 826F865A1BF8123D000F9216 /* NSObject+TLYSwizzlingHelpers.m */; };
826F866E1BF8123D000F9216 /* TLYDelegateProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = 826F865C1BF8123D000F9216 /* TLYDelegateProxy.m */; };
826F866F1BF8123D000F9216 /* UIScrollView+Helpers.m in Sources */ = {isa = PBXBuildFile; fileRef = 826F865E1BF8123D000F9216 /* UIScrollView+Helpers.m */; };
826F86701BF8123D000F9216 /* UIViewController+BetterLayoutGuides.m in Sources */ = {isa = PBXBuildFile; fileRef = 826F86601BF8123D000F9216 /* UIViewController+BetterLayoutGuides.m */; };
826F86711BF8123D000F9216 /* TLYShyScrollViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 826F86651BF8123D000F9216 /* TLYShyScrollViewController.m */; };
826F86721BF8123D000F9216 /* TLYShyStatusBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = 826F86671BF8123D000F9216 /* TLYShyStatusBarController.m */; };
826F86731BF8123D000F9216 /* TLYShyViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 826F86691BF8123D000F9216 /* TLYShyViewController.m */; };
826F86741BF8123D000F9216 /* TLYShyNavBarManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 826F866C1BF8123D000F9216 /* TLYShyNavBarManager.m */; };
E7ADE6101A99A83B00E8F95C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7ADE60F1A99A83B00E8F95C /* AppDelegate.swift */; };
E7ADE6151A99A83B00E8F95C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E7ADE6131A99A83B00E8F95C /* Main.storyboard */; };
E7ADE6171A99A83B00E8F95C /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E7ADE6161A99A83B00E8F95C /* Images.xcassets */; };
E7ADE61A1A99A83B00E8F95C /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = E7ADE6181A99A83B00E8F95C /* LaunchScreen.xib */; };
E7ADE6261A99A83B00E8F95C /* TLYShyNavBarSwiftDemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7ADE6251A99A83B00E8F95C /* TLYShyNavBarSwiftDemoTests.swift */; };
E7ADE6421A99AB5800E8F95C /* TableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E7ADE6411A99AB5800E8F95C /* TableViewController.swift */; };
E7ADE64F1A9A6F7C00E8F95C /* NSObject+TLYSwizzlingHelpers.m in Sources */ = {isa = PBXBuildFile; fileRef = E7ADE6461A9A6F7C00E8F95C /* NSObject+TLYSwizzlingHelpers.m */; };
E7ADE6501A9A6F7C00E8F95C /* UIViewController+BetterLayoutGuides.m in Sources */ = {isa = PBXBuildFile; fileRef = E7ADE6481A9A6F7C00E8F95C /* UIViewController+BetterLayoutGuides.m */; };
E7ADE6511A9A6F7C00E8F95C /* TLYDelegateProxy.m in Sources */ = {isa = PBXBuildFile; fileRef = E7ADE64A1A9A6F7C00E8F95C /* TLYDelegateProxy.m */; };
E7ADE6521A9A6F7C00E8F95C /* TLYShyNavBarManager.m in Sources */ = {isa = PBXBuildFile; fileRef = E7ADE64C1A9A6F7C00E8F95C /* TLYShyNavBarManager.m */; };
E7ADE6531A9A6F7C00E8F95C /* TLYShyViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E7ADE64E1A9A6F7C00E8F95C /* TLYShyViewController.m */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -31,6 +34,25 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
826F86591BF8123D000F9216 /* NSObject+TLYSwizzlingHelpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSObject+TLYSwizzlingHelpers.h"; sourceTree = "<group>"; };
826F865A1BF8123D000F9216 /* NSObject+TLYSwizzlingHelpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+TLYSwizzlingHelpers.m"; sourceTree = "<group>"; };
826F865B1BF8123D000F9216 /* TLYDelegateProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYDelegateProxy.h; sourceTree = "<group>"; };
826F865C1BF8123D000F9216 /* TLYDelegateProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYDelegateProxy.m; sourceTree = "<group>"; };
826F865D1BF8123D000F9216 /* UIScrollView+Helpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIScrollView+Helpers.h"; sourceTree = "<group>"; };
826F865E1BF8123D000F9216 /* UIScrollView+Helpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIScrollView+Helpers.m"; sourceTree = "<group>"; };
826F865F1BF8123D000F9216 /* UIViewController+BetterLayoutGuides.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIViewController+BetterLayoutGuides.h"; sourceTree = "<group>"; };
826F86601BF8123D000F9216 /* UIViewController+BetterLayoutGuides.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIViewController+BetterLayoutGuides.m"; sourceTree = "<group>"; };
826F86621BF8123D000F9216 /* TLYShyChild.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyChild.h; sourceTree = "<group>"; };
826F86631BF8123D000F9216 /* TLYShyParent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyParent.h; sourceTree = "<group>"; };
826F86641BF8123D000F9216 /* TLYShyScrollViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyScrollViewController.h; sourceTree = "<group>"; };
826F86651BF8123D000F9216 /* TLYShyScrollViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYShyScrollViewController.m; sourceTree = "<group>"; };
826F86661BF8123D000F9216 /* TLYShyStatusBarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyStatusBarController.h; sourceTree = "<group>"; };
826F86671BF8123D000F9216 /* TLYShyStatusBarController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYShyStatusBarController.m; sourceTree = "<group>"; };
826F86681BF8123D000F9216 /* TLYShyViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyViewController.h; sourceTree = "<group>"; };
826F86691BF8123D000F9216 /* TLYShyViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYShyViewController.m; sourceTree = "<group>"; };
826F866A1BF8123D000F9216 /* TLYShyNavBarFade.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyNavBarFade.h; sourceTree = "<group>"; };
826F866B1BF8123D000F9216 /* TLYShyNavBarManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyNavBarManager.h; sourceTree = "<group>"; };
826F866C1BF8123D000F9216 /* TLYShyNavBarManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYShyNavBarManager.m; sourceTree = "<group>"; };
E7ADE60A1A99A83B00E8F95C /* TLYShyNavBarSwiftDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TLYShyNavBarSwiftDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
E7ADE60E1A99A83B00E8F95C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E7ADE60F1A99A83B00E8F95C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
@ -42,16 +64,6 @@
E7ADE6251A99A83B00E8F95C /* TLYShyNavBarSwiftDemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TLYShyNavBarSwiftDemoTests.swift; sourceTree = "<group>"; };
E7ADE6401A99A86600E8F95C /* Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Bridging-Header.h"; sourceTree = "<group>"; };
E7ADE6411A99AB5800E8F95C /* TableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TableViewController.swift; sourceTree = "<group>"; };
E7ADE6451A9A6F7C00E8F95C /* NSObject+TLYSwizzlingHelpers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSObject+TLYSwizzlingHelpers.h"; sourceTree = "<group>"; };
E7ADE6461A9A6F7C00E8F95C /* NSObject+TLYSwizzlingHelpers.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+TLYSwizzlingHelpers.m"; sourceTree = "<group>"; };
E7ADE6471A9A6F7C00E8F95C /* UIViewController+BetterLayoutGuides.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIViewController+BetterLayoutGuides.h"; sourceTree = "<group>"; };
E7ADE6481A9A6F7C00E8F95C /* UIViewController+BetterLayoutGuides.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIViewController+BetterLayoutGuides.m"; sourceTree = "<group>"; };
E7ADE6491A9A6F7C00E8F95C /* TLYDelegateProxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYDelegateProxy.h; sourceTree = "<group>"; };
E7ADE64A1A9A6F7C00E8F95C /* TLYDelegateProxy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYDelegateProxy.m; sourceTree = "<group>"; };
E7ADE64B1A9A6F7C00E8F95C /* TLYShyNavBarManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyNavBarManager.h; sourceTree = "<group>"; };
E7ADE64C1A9A6F7C00E8F95C /* TLYShyNavBarManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYShyNavBarManager.m; sourceTree = "<group>"; };
E7ADE64D1A9A6F7C00E8F95C /* TLYShyViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TLYShyViewController.h; sourceTree = "<group>"; };
E7ADE64E1A9A6F7C00E8F95C /* TLYShyViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TLYShyViewController.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -72,11 +84,54 @@
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
826F86571BF8123D000F9216 /* TLYShyNavBar */ = {
isa = PBXGroup;
children = (
826F86581BF8123D000F9216 /* Categories */,
826F86611BF8123D000F9216 /* ShyControllers */,
826F866A1BF8123D000F9216 /* TLYShyNavBarFade.h */,
826F866B1BF8123D000F9216 /* TLYShyNavBarManager.h */,
826F866C1BF8123D000F9216 /* TLYShyNavBarManager.m */,
);
name = TLYShyNavBar;
path = ../TLYShyNavBar;
sourceTree = "<group>";
};
826F86581BF8123D000F9216 /* Categories */ = {
isa = PBXGroup;
children = (
826F86591BF8123D000F9216 /* NSObject+TLYSwizzlingHelpers.h */,
826F865A1BF8123D000F9216 /* NSObject+TLYSwizzlingHelpers.m */,
826F865B1BF8123D000F9216 /* TLYDelegateProxy.h */,
826F865C1BF8123D000F9216 /* TLYDelegateProxy.m */,
826F865D1BF8123D000F9216 /* UIScrollView+Helpers.h */,
826F865E1BF8123D000F9216 /* UIScrollView+Helpers.m */,
826F865F1BF8123D000F9216 /* UIViewController+BetterLayoutGuides.h */,
826F86601BF8123D000F9216 /* UIViewController+BetterLayoutGuides.m */,
);
path = Categories;
sourceTree = "<group>";
};
826F86611BF8123D000F9216 /* ShyControllers */ = {
isa = PBXGroup;
children = (
826F86621BF8123D000F9216 /* TLYShyChild.h */,
826F86631BF8123D000F9216 /* TLYShyParent.h */,
826F86641BF8123D000F9216 /* TLYShyScrollViewController.h */,
826F86651BF8123D000F9216 /* TLYShyScrollViewController.m */,
826F86661BF8123D000F9216 /* TLYShyStatusBarController.h */,
826F86671BF8123D000F9216 /* TLYShyStatusBarController.m */,
826F86681BF8123D000F9216 /* TLYShyViewController.h */,
826F86691BF8123D000F9216 /* TLYShyViewController.m */,
);
path = ShyControllers;
sourceTree = "<group>";
};
E7ADE6011A99A83B00E8F95C = {
isa = PBXGroup;
children = (
E7ADE6401A99A86600E8F95C /* Bridging-Header.h */,
E7ADE6431A9A6F7C00E8F95C /* TLYShyNavBar */,
826F86571BF8123D000F9216 /* TLYShyNavBar */,
E7ADE60C1A99A83B00E8F95C /* TLYShyNavBarSwiftDemo */,
E7ADE6221A99A83B00E8F95C /* TLYShyNavBarSwiftDemoTests */,
E7ADE60B1A99A83B00E8F95C /* Products */,
@ -130,32 +185,6 @@
name = "Supporting Files";
sourceTree = "<group>";
};
E7ADE6431A9A6F7C00E8F95C /* TLYShyNavBar */ = {
isa = PBXGroup;
children = (
E7ADE6441A9A6F7C00E8F95C /* Categories */,
E7ADE6491A9A6F7C00E8F95C /* TLYDelegateProxy.h */,
E7ADE64A1A9A6F7C00E8F95C /* TLYDelegateProxy.m */,
E7ADE64B1A9A6F7C00E8F95C /* TLYShyNavBarManager.h */,
E7ADE64C1A9A6F7C00E8F95C /* TLYShyNavBarManager.m */,
E7ADE64D1A9A6F7C00E8F95C /* TLYShyViewController.h */,
E7ADE64E1A9A6F7C00E8F95C /* TLYShyViewController.m */,
);
name = TLYShyNavBar;
path = ../TLYShyNavBar;
sourceTree = "<group>";
};
E7ADE6441A9A6F7C00E8F95C /* Categories */ = {
isa = PBXGroup;
children = (
E7ADE6451A9A6F7C00E8F95C /* NSObject+TLYSwizzlingHelpers.h */,
E7ADE6461A9A6F7C00E8F95C /* NSObject+TLYSwizzlingHelpers.m */,
E7ADE6471A9A6F7C00E8F95C /* UIViewController+BetterLayoutGuides.h */,
E7ADE6481A9A6F7C00E8F95C /* UIViewController+BetterLayoutGuides.m */,
);
path = Categories;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@ -200,7 +229,8 @@
E7ADE6021A99A83B00E8F95C /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0610;
LastSwiftUpdateCheck = 0710;
LastUpgradeCheck = 0710;
ORGANIZATIONNAME = "Acktie, LLC";
TargetAttributes = {
E7ADE6091A99A83B00E8F95C = {
@ -256,13 +286,16 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E7ADE6531A9A6F7C00E8F95C /* TLYShyViewController.m in Sources */,
826F86741BF8123D000F9216 /* TLYShyNavBarManager.m in Sources */,
826F86731BF8123D000F9216 /* TLYShyViewController.m in Sources */,
826F86721BF8123D000F9216 /* TLYShyStatusBarController.m in Sources */,
E7ADE6421A99AB5800E8F95C /* TableViewController.swift in Sources */,
E7ADE6501A9A6F7C00E8F95C /* UIViewController+BetterLayoutGuides.m in Sources */,
826F86711BF8123D000F9216 /* TLYShyScrollViewController.m in Sources */,
826F86701BF8123D000F9216 /* UIViewController+BetterLayoutGuides.m in Sources */,
E7ADE6101A99A83B00E8F95C /* AppDelegate.swift in Sources */,
E7ADE6511A9A6F7C00E8F95C /* TLYDelegateProxy.m in Sources */,
E7ADE6521A9A6F7C00E8F95C /* TLYShyNavBarManager.m in Sources */,
E7ADE64F1A9A6F7C00E8F95C /* NSObject+TLYSwizzlingHelpers.m in Sources */,
826F866D1BF8123D000F9216 /* NSObject+TLYSwizzlingHelpers.m in Sources */,
826F866E1BF8123D000F9216 /* TLYDelegateProxy.m in Sources */,
826F866F1BF8123D000F9216 /* UIScrollView+Helpers.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -324,6 +357,7 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
@ -387,6 +421,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = TLYShyNavBarSwiftDemo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.telly.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Bridging-Header.h";
};
@ -398,6 +433,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = TLYShyNavBarSwiftDemo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.telly.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Bridging-Header.h";
};
@ -417,6 +453,7 @@
);
INFOPLIST_FILE = TLYShyNavBarSwiftDemoTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.telly.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TLYShyNavBarSwiftDemo.app/TLYShyNavBarSwiftDemo";
};
@ -432,6 +469,7 @@
);
INFOPLIST_FILE = TLYShyNavBarSwiftDemoTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.telly.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TLYShyNavBarSwiftDemo.app/TLYShyNavBarSwiftDemo";
};

View File

@ -3,7 +3,7 @@
// TLYShyNavBarSwiftDemo
//
// Created by Tony Nuzzi on 2/22/15.
// Copyright (c) 2015 Acktie, LLC. All rights reserved.
// Copyright (c) 2015 Telly, Inc. All rights reserved.
//
import UIKit
@ -15,9 +15,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
return true
}
}

View File

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9060" systemVersion="14F1021" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9051"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
</dependencies>
<objects>
@ -11,12 +12,6 @@
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 Acktie, LLC. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
<rect key="frame" x="20" y="439" width="441" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="TLYShyNavBarSwiftDemo" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
<rect key="frame" x="20" y="140" width="441" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
@ -28,9 +23,6 @@
<constraints>
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>

View File

@ -1,56 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6254" systemVersion="14C109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="gcu-PF-Kdc">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9060" systemVersion="14F1021" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="gcu-PF-Kdc">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6247"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9051"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
</dependencies>
<scenes>
<!--Demo-->
<scene sceneID="5MV-8R-1mp">
<objects>
<tableViewController id="u4f-jm-pLt" customClass="TableViewController" customModule="TLYShyNavBarSwiftDemo" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="yOB-Ib-nJT">
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="Cell" id="rc9-p0-nKD">
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="rc9-p0-nKD" id="N7f-GN-2zs">
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Scroll" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lY6-Vg-XZm">
<rect key="frame" x="0.0" y="-21" width="42" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
<variation key="widthClass=compact" fixedFrame="YES">
<rect key="frame" x="8" y="8" width="44" height="21"/>
</variation>
</label>
</subviews>
<variation key="default">
<mask key="subviews">
<exclude reference="lY6-Vg-XZm"/>
</mask>
</variation>
<variation key="widthClass=compact">
<mask key="subviews">
<include reference="lY6-Vg-XZm"/>
</mask>
</variation>
</tableViewCellContentView>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="u4f-jm-pLt" id="0XH-xm-LBh"/>
<outlet property="delegate" destination="u4f-jm-pLt" id="B1g-9M-ck7"/>
</connections>
</tableView>
<navigationItem key="navigationItem" title="Demo" id="mru-Ba-r9e"/>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="sOT-UF-3QF" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1765.5" y="967"/>
</scene>
<!--Navigation Controller-->
<scene sceneID="VSn-a0-VnN">
<objects>
@ -62,12 +17,60 @@
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="u4f-jm-pLt" kind="relationship" relationship="rootViewController" id="ELf-J7-Ybx"/>
<segue destination="vOs-5m-xlO" kind="relationship" relationship="rootViewController" id="p9Y-9o-9MW"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="Frk-A2-IjM" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="847.5" y="967"/>
</scene>
<!--Table View Controller-->
<scene sceneID="NAs-uQ-Ea8">
<objects>
<viewController id="vOs-5m-xlO" customClass="TableViewController" customModule="TLYShyNavBarSwiftDemo" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="C6a-f8-KBT"/>
<viewControllerLayoutGuide type="bottom" id="FKh-fg-vBU"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="uTv-Xr-a2q">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="fV9-Px-sY4">
<rect key="frame" x="0.0" y="64" width="600" height="536"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Cell" id="Ag6-XG-aGT">
<rect key="frame" x="0.0" y="92" width="600" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="Ag6-XG-aGT" id="Cc3-Ve-97U">
<rect key="frame" x="0.0" y="0.0" width="600" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
</tableViewCellContentView>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="vOs-5m-xlO" id="fhv-O6-Mqa"/>
<outlet property="delegate" destination="vOs-5m-xlO" id="mQU-nr-T9M"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="fV9-Px-sY4" firstAttribute="leading" secondItem="uTv-Xr-a2q" secondAttribute="leadingMargin" constant="-20" id="Et1-aO-iuq"/>
<constraint firstItem="fV9-Px-sY4" firstAttribute="top" secondItem="C6a-f8-KBT" secondAttribute="bottom" id="H65-cb-z1U"/>
<constraint firstAttribute="trailingMargin" secondItem="fV9-Px-sY4" secondAttribute="trailing" constant="-20" id="QXg-lr-akD"/>
<constraint firstItem="FKh-fg-vBU" firstAttribute="top" secondItem="fV9-Px-sY4" secondAttribute="bottom" id="ayS-2m-MHv"/>
</constraints>
</view>
<navigationItem key="navigationItem" id="2Z9-8I-sLg"/>
<connections>
<outlet property="tableView" destination="fV9-Px-sY4" id="SgW-ha-8aS"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="eHc-LN-fao" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1689" y="967"/>
</scene>
</scenes>
</document>

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.acktie.test.swift.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -3,49 +3,39 @@
// TLYShyNavBarSwiftDemo
//
// Created by Tony Nuzzi on 2/22/15.
// Copyright (c) 2015 Acktie, LLC. All rights reserved.
// Copyright (c) 2015 Telly, Inc. All rights reserved.
//
import UIKit
class TableViewController: UITableViewController {
class TableViewController: UIViewController {
@IBOutlet weak var tableView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
/* In your UIViewController viewDidLoad or after creating the scroll view. */
self.shyNavBarManager.scrollView = self.tableView;
// Uncomment the following line to preserve selection between presentations
// self.clearsSelectionOnViewWillAppear = false
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
// self.navigationItem.rightBarButtonItem = self.editButtonItem()
let view = UIView(frame: CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), 40))
view.backgroundColor = UIColor.redColor()
/* Library code */
self.shyNavBarManager.scrollView = self.tableView;
self.shyNavBarManager.extensionView = view
}
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
// MARK: - Table view data source
override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
// #warning Potentially incomplete method implementation.
// Return the number of sections.
return 1
}
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// #warning Incomplete method implementation.
// Return the number of rows in the section.
extension TableViewController: UITableViewDataSource {
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 50
}
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as UITableViewCell
cell.textLabel?.text = "Content"
return cell
}
}

View File

@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.acktie.test.swift.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View File

@ -3,7 +3,7 @@
// TLYShyNavBarSwiftDemoTests
//
// Created by Tony Nuzzi on 2/22/15.
// Copyright (c) 2015 Acktie, LLC. All rights reserved.
// Copyright (c) 2015 Telly, Inc. All rights reserved.
//
import UIKit

22
TODO.md
View File

@ -1,19 +1,9 @@
# TODO
+ ~~**REALLY need to import the `realTopLayoutGuide` categories**~~
+ ~~**REALLY need to cleanup scrollView observer properly**~~
+ ~~Add ability to remove extension view~~
+ ~~Add tolerance customization~~
+ ~~Add more convenience methods for the `UIViewController` category~~
+ ~~CocoaPods support~~
+ ~~Update GIF to focus on the navbar, and demo the scroll ended animation feature~~
+ ~~Rename TLYShyNavBarController files to Manager~~
+ ~~Solve the scrollView did end dragging problem~~
+ ~~Fix orientation problems~~
+ ~~Don't end scrolling while the scrollView is decelerating. (isTracking property in gesture recognizer?)~~
+ ~~Write proper readme file~~
## Good to Have
+ Support contracting toolbar
+ Explore setting ViewController.view as a child, somehow
+ UITableView demo
+ Hidden status bar demo
+ expanded status bar demo
+ Fix contentInset calculation once and for all
+ Figure out a workaround to NSProxy

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 632 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 433 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

BIN
resources/basic-feature.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
resources/fade-navbar.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

BIN
resources/in-app-call.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
resources/no-extension.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
resources/robust.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 KiB

BIN
resources/sticky-navbar.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 KiB

BIN
resources/tableview.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB