HeroTransitions / Hero

Elegant transition library for iOS & tvOS
https://HeroTransitions.github.io/Hero/
MIT License
22k stars 1.72k forks source link

Swift compiler error - Xcode 13 beta 3 #720

Closed johnnysay closed 3 years ago

johnnysay commented 3 years ago

What did you do?

I tried to compile a project using Hero.

What did you expect to happen?

I expected the project to compile.

What happened instead?

I got the following compiler error in code using UIApplication.shared: 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.

For example in HeroTransition+Complete.swift line 90 : UIApplication.shared.keyWindow?.addSubview(isPresenting ? fromView : toView)

General Information

JoeMatt commented 3 years ago

hm, I thought this has been fixed in a prior PR.

I'll look into it again. Thanks

JoeMatt commented 3 years ago

@johnnysay 1.6.0 should have fixed this actually. https://github.com/HeroTransitions/Hero/pull/681

We're on 1.6.1 now. I'm going to close, re-open if you update to 1.6.x and still have issues.