RepositorySwiftGBVương quốc Anh
AA

aaronabentheuer/AAWindow

[Deprecated] · UIWindow subclass to enable behavior like adaptive round-corners & detecting when Control Center is opened.

473sao
14fork
1issue
3lượt xem

🛑 Dự án đã ngưng phát triển — AAWindow

AAWindow là một UIWindow subclass mang lại hai tính năng độc đáo từng được dùng rộng rãi trong các dự án iOS ngày xưa: góc bo tròn thích ứng theo trạng thái ứng dụng, và phát hiện khi người dùng mở Control Center.

AAWindow là dự án của Aaron Abentheuer, xây dựng như một bộ công cụ nhỏ gọn để tinh chỉnh giao diện ứng dụng trên iOS. Mặc dù hiện đã ngưng phát triển (archived), nhưng nó vẫn giữ giá trị tham khảo cho những ai muốn khám phá cách tùy biến hành vi cửa sổ ứng dụng. Hai tính năng chính bao gồm: góc bo tròn thích ứng tự động và phát hiện mở Control Center — cả hai đều khó thực hiện nếu dùng cách thông thường.

✨ Điểm nổi bật

  • Góc bo tròn thích ứng: Tự động thiết lập cornerRadius cho UIWindow, đồng thời hoạt ảnh về 0 khi ứng dụng chuyển sang trạng thái không hoạt động để tránh lỗi hiển thị trong Multitasking Switcher.
  • Phát hiện mở Control Center: Gửi NSNotification (applicationWillResignActiveWithControlCenter) khi người dùng mở Control Center — hữu ích cho việc hỗ trợ cài đặt AirPlay hoặc AirDrop.
  • Hai notification riêng biệt: Cung cấp cả applicationWillResignActiveWithControlCenter và applicationWillResignActiveWithoutControlCenter để phân biệt nguồn gây ra sự kiện.
  • Tích hợp đơn giản: Chỉ cần sao chép AAWindow.swift vào dự án và khởi tạo thay thế UIWindow thông thường.
  • Tương thích ngay trong AppDelegate: Cấu hình nhanh qua khởi tạo AAWindow(frame:cornerRadius:) trong AppDelegate.swift.
  • Mã nguồn mở MIT: Dễ dàng tùy biến và tích hợp vào bất kỳ dự án nào.

💡 Vì sao đáng chú ý

AAWindow nổi bật vì khai thác tiềm năng thường bị bỏ qua của UIWindow — một thành phần cốt lõi nhưng hiếm khi được tùy biến sâu. Góc bo tròn thông minh giúp ứng dụng hòa quyện với thiết bị, trong khi tính năng phát hiện Control Center cung cấp cách tiếp cận mới để hỗ trợ người dùng một cách ngữ cảnh. Tuy nhiên, do đã ngưng phát triển, bạn nên cân nhắc kỹ trước khi dùng trong sản phẩm thực tế.


#iOS #Swift #UIWindow #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPHP
jamierumbelow/codeigniter-base-model

⛔️DEPRECATED CodeIgniter base CRUD model to remove repetition and increase productivity

1.0k
Apr 4, 2018
RepositoryPHP
furey/tinx

⛔️ Laravel Tinx is archived and no longer maintained.

442
Dec 14, 2019
RepositoryC
Rohde-Schwarz/TrustedGRUB2

DEPRECATED TPM enabled GRUB2 Bootloader

193
Sep 28, 2021
RepositoryJavaScript
markitondemand/DEPRECATED-DataApis

Markit On Demand - Market Data APIs

176
May 17, 2017
RepositoryObjective-C
charlymr/IRLDocumentScanner

⛔️ DEPRECATED - A drop-in Objective-C ViewController that will Automatically scan a document for you you.

175
Nov 7, 2021
RepositoryObjective-C
Adobe-Marketing-Cloud/mobile-services

⛔️ Deprecated ⛔️ These SDKs are no longer supported by Adobe. Please see Adobe Experience Platform Mobile SDKs for current and supported versions.

170
Oct 14, 2022
RepositoryC#
proletariatgames/CUDLR

⛔️ [DEPRECATED] Console for Unity Debugging and Logging Remotely

166
Feb 28, 2018
Repository
sphero-inc/Sphero-Android-SDK

🚫 DEPRECATED REPO: Sphero™ is the amazing robotic ball ( gosphero.com ), this is the repository for the Android SDK for Sphero™. Visit dev site for more information:

159
Oct 15, 2019
RepositoryJavaScript
exelearning/iteexe

⛔️ DEPRECATED. Use https://github.com/exelearning/exelearning

146
Jun 26, 2026