RepositorySwiftJPNhật Bản
SH

shin8484/PopupWindow

PopupWindow is a simple Popup using another UIWindow in Swift

414sao
28fork
8issue
0lượt xem

🪟 PopupWindow — Popup nổi suất trên UIWindow riêng

Popup dùng UIWindow riêng, hiển thị trên mọi màn hình, không mất khi chuyển scene.

PopupWindow là một thư viện Swift nhẹ, hiển thị popup bằng cách tạo một UIWindow phụ. Khác với cách thông thường dùng view overlay trên view controller, popup ở đây được quản lý bởi PopupWindowManager và luôn hiển thị trên cùng, kể cả khi ứng dụng có chuyển màn hình. Phù hợp cho toast, card, thông báo nhanh.

✨ Điểm nổi bật

  • Hiển thị trên UIWindow riêng: popup không bị ảnh hưởng bởi navigation hoặc tab chuyển màn hình.
  • Vị trí linh hoạt: hỗ trợ hiển thị ở trên hoặc dưới màn hình.
  • Tùy biến giao diện: hỗ trợ margin, cornerRadius, blur, và kiểu view (toast/card).
  • Chạm xuyên blur: khi bật blur, người dùng không thể chạm vào nội dung phía sau; tắt blur cho phép tương tác.
  • Hỗ trợ xoay màn hình: cài đặt maxWidth và landscapeSize để điều chỉnh kích thước popup khi xoay.
  • Cài đặt dễ dàng: hỗ trợ CocoaPods và Carthage.

💡 Vì sao đáng chú ý

PopupWindow khác biệt là việc dùng UIWindow phụ để hiển thị popup, giúp popup luôn ở trên cùng và không bị giới hạn bởi view hierarchy hiện tại. Điều này rất hữu ích khi cần hiển thị thông báo toàn cục hoặc popup xuất hiện trong lúc chuyển màn hình. Thư viện cũng hỗ trợ đầy đủ các tùy chọn như blur, góc tròn, và điều chỉnh kích thước theo orientation.


#Swift #iOS #PopupWindow #Popup #Toast #UIWindow #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.

RepositorySwift
exyte/PopupView

Toasts and popups library written with SwiftUI

4.1k
Oct 6, 2026
RepositorySwift
elai950/AlertToast

Create Apple-like alerts & toasts using SwiftUI

2.4k
Nov 12, 2024
RepositorySwift
Mijick/Popups

Popups, popovers, sheets, alerts, toasts, banners, (...) presentation made simple. Written with and for SwiftUI.

1.8k
Oct 22, 2025
RepositorySwift
candostdagdeviren/CDAlertView

Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift

1.1k
Aug 20, 2026
RepositorySwift
quanshousio/ToastUI

A simple way to show toast in SwiftUI.

653
Aug 11, 2024
RepositoryJavaScript
sweetalert2/sweetalert2

✨ A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies. 🇺🇦🇪🇺

18.1k
Oct 14, 2026
RepositoryJava
junixapp/XPopup

🔥XPopup2.0版本重磅来袭,2倍以上性能提升,带来可观的动画性能优化和交互细节的提升!!!功能强大,交互优雅,动画丝滑的通用弹窗!可以替代Dialog,PopupWindow,PopupMenu,BottomSheet,DrawerLayout,Spinner等组件,自带十几种效果良好的动画, 支持完全的UI和动画自定义!(Powerful and Beautiful Popup for Android,can absolutely replace Dialog,PopupWindow,PopupMenu,BottomSheet,DrawerLayout,Spinner. With built-in animators , very easy to custom popup view.)

8.0k
Feb 1, 2025
RepositoryJava
razerdp/BasePopup

Android下打造通用便捷的PopupWindow弹窗库

5.2k
Jan 21, 2026
RepositoryJava
skydoves/PowerMenu

:fire: Powerful and modernized popup menu with fully customizable animations.

1.2k
Jun 28, 2023