Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Open Peel on the Mac's own screen for the accessibility audit
Țugui Dragoșfb9d2787279a
diff --git a/PeelUITests/AccessibilityAuditTests.swift b/PeelUITests/AccessibilityAuditTests.swiftindex f29c571e..c086c6f4 100644--- a/PeelUITests/AccessibilityAuditTests.swift+++ b/PeelUITests/AccessibilityAuditTests.swift@@ -1,3 +1,4 @@+import AppKitimport XCTest/// Runs Xcode's accessibility audit on every page of Peel, on About, on each pane of Settings, and on the menu bar@@ -51,6 +52,9 @@ final class AccessibilityAuditTests: XCTestCase {"-AppleInterfaceStyleSwitchesAutomatically", "NO","-AppleInterfaceStyle", appearance,"-NSRequiresAquaSystemAppearance", appearance == "Light" ? "YES" : "NO",+ // On the Mac's own screen, filling it, rather than where the window was restored to.+ "-ApplePersistenceIgnoreState", "YES",+ "-NSWindow Frame main", Self.builtInScreenFrame,]app.launch()@@ -96,6 +100,17 @@ final class AccessibilityAuditTests: XCTestCase {return "\(found.elementType.rawValue) '\(found.label)' '\(found.identifier)' \(found.frame)"}+ /// The visible frame of the Mac's built-in screen, written as a saved window frame: the window's, then the screen's.+ private static var builtInScreenFrame: String {+ let builtIn = NSScreen.screens.first { screen in+ let number = screen.deviceDescription[NSDeviceDescriptionKey("NSScreenNumber")] as? NSNumber+ return number.map { CGDisplayIsBuiltin($0.uint32Value) != 0 } ?? false+ }+ let frame = (builtIn ?? NSScreen.screens[0]).visibleFrame+ let numbers = [frame.minX, frame.minY, frame.width, frame.height].map { String(Int($0)) }+ return (numbers + numbers).joined(separator: " ") + " "+ }+/// A page's tab or a pane of Settings, found by its name, whatever kind of element the system shows it as.private func toolbarItem(_ name: String, in window: XCUIElement) -> XCUIElement {window.toolbars.descendants(matching: .any).matching(NSPredicate(format: "label == %@", name)).firstMatch