Skip to content

Commit

Permalink
Merge pull request #20 from maxxfrazer/2.2.2-patch
Browse files Browse the repository at this point in the history
Patch Update - AutoUpdate method
  • Loading branch information
maxxfrazer authored Apr 11, 2021
2 parents a8de187 + aeca1cc commit 0c7cfd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/FocusEntity/FocusEntity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ open class FocusEntity: Entity, HasAnchoring, HasFocusEntity {
public private(set) var isAutoUpdating: Bool = false

public func setAutoUpdate(to autoUpdate: Bool) {
guard autoUpdate == self.isAutoUpdating,
(autoUpdate && self.arView == nil) else {
guard autoUpdate != self.isAutoUpdating,
!(autoUpdate && self.arView == nil) else {
return
}
self.updateCancellable?.cancel()
Expand Down

0 comments on commit 0c7cfd8

Please sign in to comment.