Skip to content

Commit

Permalink
♻️ Standardize screen capture window
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaatttt committed Apr 11, 2023
1 parent ea41eae commit e1fcb9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import UIKit

// UIKit selector implementation that uses accessibilityIdentifier,
// accessibiltyLabel, and tag data from the underlying UIView to identify elements.
// accessibilityLabel, and tag data from the underlying UIView to identify elements.
internal class UIKitElementSelector: AppcuesElementSelector {
private enum CodingKeys: String, CodingKey {
case accessibilityIdentifier
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppcuesKit/Presentation/Debugger/UIDebugger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ extension UIDebugger: DebugViewDelegate {

private func captureScreen(authorization: Authorization) {
guard let debugViewController = debugViewController,
let window = UIApplication.shared.windows.first(where: { !($0 is DebugUIWindow) }),
let window = UIApplication.shared.windows.first(where: { !$0.isAppcuesWindow }),
let screenshot = window.screenshot(),
let layout = Appcues.elementTargeting.captureLayout() else {

Expand Down

0 comments on commit e1fcb9e

Please sign in to comment.