Created
January 3, 2020 14:34
-
-
Save f0rr0/be7ed0db4cb82ccbbdff20fc6c344c52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Sources/Concerns/Feed/Extensions/FeedViewController+Model.swift b/Sources/Concerns/Feed/Extensions/FeedViewController+Model | |
index 4007e5d..7786f04 100644 | |
--- a/Sources/Concerns/Feed/Extensions/FeedViewController+Model.swift | |
+++ b/Sources/Concerns/Feed/Extensions/FeedViewController+Model.swift | |
@@ -67,9 +67,11 @@ extension FeedViewController { | |
switch card.target.type { | |
case "story": | |
let controller = StoryViewController.instantiate(fromAppStoryboard: .story) | |
- Hero.shared.defaultAnimation = .selectBy(presenting: .push(direction: .up), dismissing: .pull(direction: .d | |
+ | |
controller.storyUUID = card.target.uuid! | |
controller.thumbnailURL = URL(string: card.thumbnail.url)! | |
+ | |
+ controller.view.hero.modifiers = [.scale(0.6), .fade, .timingFunction(.easeOut), .duration(0.15)] | |
+ Hero.shared.defaultAnimation = .auto | |
--- a/Resources/Base.lproj/Main.storyboard | |
+++ b/Resources/Base.lproj/Main.storyboard | |
@@ -267,7 +267,6 @@ | |
<nil name="viewControllers"/> | |
<userDefinedRuntimeAttributes> | |
<userDefinedRuntimeAttribute type="boolean" keyPath="isHeroEnabled" value="YES"/> | |
- <userDefinedRuntimeAttribute type="string" keyPath="heroNavigationAnimationTypeString" value="fade"/> | |
</userDefinedRuntimeAttributes> | |
<connections> | |
<segue destination="BYZ-38-t0r" kind="relationship" relationship="rootViewController" id="b9Z-Ja-N9I"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment