Autumn Sale50% offCOMPOT

SwiftUI Alerts & Modals

Custom modal alert overlay views with actions and modern rounded containers. (1 components available in Compot).

1 of 1Pro ComponentiOS 16.0+

Custom Alert View

Beautifully styled custom modal alert overlay with title, message, and customizable action buttons.

View Component & Details
CustomAlertView.swift
Unlock in App
import SwiftUI

struct UseCustomAlert: View {
    
    @State private var showAlert: Bool = true
    
    private func handleAction() {
        print("Action triggered")

        // ...
        // Complete source code available in Compot Pro on the App Store.
Compot Pro Component

Unlock full code & interactive preview

Interactive live preview and complete SwiftUI code available in the Compot App.

Available for macOS & iOS • 85+ free components included