Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tvOS target #71

Merged
merged 3 commits into from
Feb 7, 2017
Merged

Add tvOS target #71

merged 3 commits into from
Feb 7, 2017

Conversation

fruitcoder
Copy link
Contributor

Added tvOS target.
Made HeroDebugPlugin and HeroDebugView unavailable until UISlider functionality is replaced with continuous gesture.

@fruitcoder fruitcoder changed the title Tv os target Add tvOS target Feb 7, 2017
@fruitcoder fruitcoder mentioned this pull request Feb 7, 2017
Copy link
Collaborator

@lkzhao lkzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!😍

@@ -22,6 +22,7 @@

import UIKit

#if os(iOS)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try using @available(tvOS, unavailable). Not sure if this works, but looks better this way.

@@ -30,6 +30,7 @@ protocol HeroDebugViewDelegate {
func onDone()
}

#if os(iOS)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@@ -134,7 +134,9 @@ extension HeroContext {
} else if let barView = view as? UINavigationBar, barView.isTranslucent {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how tvOS's navigation bar works. But i think we should not go in to this else if statement. The navigationBar snapshot used here is pretty dependent on iOS's navigation bar implementation. Lets limit this else if to be only available on iOS

@lkzhao
Copy link
Collaborator

lkzhao commented Feb 7, 2017

I will merge now before I do any works to cause conflicts. Thank you!

@lkzhao lkzhao merged commit 99805cb into HeroTransitions:master Feb 7, 2017
@fruitcoder
Copy link
Contributor Author

Alright! If you still want any changes let me know :)

lkzhao pushed a commit that referenced this pull request Feb 16, 2017
* Minimal working tvOS project

* Don't compile HeroDebugPlugin and HeroDebugView for tvOS target
lkzhao pushed a commit that referenced this pull request Feb 16, 2017
* Minimal working tvOS project

* Don't compile HeroDebugPlugin and HeroDebugView for tvOS target
lkzhao pushed a commit that referenced this pull request Jun 14, 2017
* Minimal working tvOS project

* Don't compile HeroDebugPlugin and HeroDebugView for tvOS target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants