{"repo":"divadretlaw/CustomAlert","free":true,"listed":false,"github":"https://github.com/divadretlaw/CustomAlert","clone":"git clone https://github.com/divadretlaw/CustomAlert.git","description":"🔔 Custom Alert for SwiftUI","language":"Swift","stars":242,"topics":["swiftui","swift","alert"],"license":"MIT","category":"mobile-apps","readme_excerpt":"CustomAlert Why In iOS Alerts cannot contain Images or anything other than Text. This allows you to easily customize the message part with any custom view. While the alert is completely rebuilt in SwiftUI, it has been designed to look and behave exactly like a native alert. The alert uses it's own window to be displayed and utilizes accessibility scaling but with the advantage of a custom view. If the content is too large because the text is too long or the text doesn't fit because of accessibility scaling the content will scroll just like in a SwiftUI Alert. Usage iOS SwiftUI Alert Custom Alert :---: :-------------: :------------: iOS 26+ iOS 15 - iOS 18 On iOS 26, the default configuration is based on CustomAlertConfiguration.liquidGlass and on previous iOS versions CustomAlertConfiguration.classic . You can easily add an Image or change the Font used in the alert, or anything else to your imagination. Something simple with an image and a text field Or more complex layouts The API is very similar to the SwiftUI Alerts You can create Side by Side Buttons using ActionHStack The alert is customizable via the Environment You can also display an Alert inline, within a List for example Install SwiftPM License See LICENSE","default_branch":null,"files":null,"tree":[],"storefront":"/r/divadretlaw","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/divadretlaw/CustomAlert/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."}