{"repo":"aheze/Popovers","free":true,"listed":false,"github":"https://github.com/aheze/Popovers","clone":"git clone https://github.com/aheze/Popovers.git","description":"A library to present popovers. Simple, modern, and highly customizable. Not boring!","language":"Swift","stars":2210,"topics":["swift","swiftui","ios","popover","alert","popup","notification","uiwindow","snackbar"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Popovers A library to present popovers. - Present any view above your app's main content. - Attach to source views or use picture-in-picture positioning. - Display multiple popovers at the same time with smooth transitions. - Supports SwiftUI, UIKit, and multitasking windows on iPadOS. - Highly customizable API that's super simple — just add .popover . - Drop-in replacement for iOS 14's Menu that works on iOS 13. - SwiftUI-based core for a lightweight structure. 0 dependencies. - It's 2023 — about time that popovers got interesting! Showroom Alert Color Menu Tip Standard Tutorial Picture-in-Picture Notification Example Includes 20 popover examples. Download Installation Requires iOS 13+. Popovers can be installed through the Swift Package Manager (recommended) or Cocoapods. Swift Package Manager Add the Package URL: Cocoapods Add this to your Podfile: Usage To present a popover in SwiftUI, use the .popover(present:attributes:view) modifier. By default, the popover uses its parent view as the source frame. In UIKit, create a Popover instance, then present with UIViewController.present( :) . You should also set the source frame. Customization 🔖 💠 ⬜ 🔲 ⏹ 🟩 🟥 🎾 🛑 👓 👉 🎈 🔰 --- --- --- --- --- --- --- --- --- --- --- --- --- Customize popovers through the Attributes struct. Pretty much everything is customizable, including positioning, animations, and dismissal behavior. SwiftUI Configure in the attributes parameter. UIKit Modify the attributes property. 🔖 Tag • AnyHashab","default_branch":null,"files":null,"tree":[],"storefront":"/r/aheze","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aheze/Popovers/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}