Skip to content

Commit

Permalink
Merge pull request #749 from tadija/feature/xcode14-warnings
Browse files Browse the repository at this point in the history
Fix build warnings with Xcode 14.0
  • Loading branch information
JoeMatt authored Oct 6, 2022
2 parents b97cdc1 + fd2ba86 commit a47dce4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/Transition/HeroTransition+Animate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import UIKit

extension HeroTransition {
open func animate() {
public func animate() {
guard state == .starting else { return }
state = .animating

Expand Down
2 changes: 1 addition & 1 deletion Sources/Transition/HeroTransition+Complete.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import UIKit

extension HeroTransition {
open func complete(finished: Bool) {
public func complete(finished: Bool) {
if state == .notified {
forceFinishing = finished
}
Expand Down
6 changes: 3 additions & 3 deletions Sources/Transition/HeroTransition+Start.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import UIKit

extension HeroTransition {
open func start() {
public func start() {
guard state == .notified else { return }
state = .starting

Expand Down Expand Up @@ -163,11 +163,11 @@ extension HeroTransition {
processors.forEach {
$0.process(fromViews: context.fromViews, toViews: context.toViews)
}

animatingFromViews = context.fromViews.filter { (view: UIView) -> Bool in
animators.contains { $0.canAnimate(view: view, appearing: false) }
}

animatingToViews = context.toViews.filter { (view: UIView) -> Bool in
animators.contains { $0.canAnimate(view: view, appearing: true) }
}
Expand Down

0 comments on commit a47dce4

Please sign in to comment.