Hero: SwiftUI

Created on 22 Oct 2019  路  6Comments  路  Source: HeroTransitions/Hero

What did you do?

I tried to find out if Hero would work in combination with SwiftUI

What did you expect to happen?

I actually expected it would not work.

What happened instead?

It turned out to work out of the box.

General Information

  • Hero Version: 1.4.0

  • iOS Version(s): 13

  • Swift Version: 5

  • Devices/Simulators: iPhone X

  • Reproducible in Examples? (Yes):

Demo Project

https://github.com/CuratoOpenSource/Hero-SwiftUI-example

Most helpful comment

@kuyazee sure, I鈥檒l take some time for this on Friday 馃憣.

All 6 comments

So yeah, against my expectations Hero turned out to work with SwiftUI, since I did not see this documented here I thought this would be worth mentioning.

The demo project that's linked above should show that Hero can be quite easily be used with the new framework.

Since this is not really an issue anymore I'll close it and leave it be for documentation purposes.

Hope this helped!

Thank you for the letting us know! This is very interesting 馃憤

Hey @lvnkmn would be great if you could create a PR to add your example maybe to the examples folder

@kuyazee sure, I鈥檒l take some time for this on Friday 馃憣.

Sorry, something came up so I could not do this on Friday.

However I started making an appropriate example this evening and will likely create the PR tomorrow.

Forgot to close this one.

Was this page helpful?
0 / 5 - 0 ratings