Skip to content

Commit

Permalink
Merge pull request #20 from Calvin-LL/main
Browse files Browse the repository at this point in the history
Make CustomAlert public
  • Loading branch information
divadretlaw authored Jul 24, 2024
2 parents ddf8800 + c99522e commit 2261709
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/CustomAlert/Views/CustomAlert.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import SwiftUI

/// Custom Alert
struct CustomAlert<Content, Actions>: View where Content: View, Actions: View {
public struct CustomAlert<Content, Actions>: View where Content: View, Actions: View {
@Environment(\.customAlertConfiguration) private var configuration

@Binding var isPresented: Bool
Expand All @@ -26,7 +26,7 @@ struct CustomAlert<Content, Actions>: View where Content: View, Actions: View {
// Used to animate the appearance
@State private var isShowing = false

init(
public init(
isPresented: Binding<Bool>,
title: @escaping () -> Text?,
@ViewBuilder content: () -> Content,
Expand All @@ -38,7 +38,7 @@ struct CustomAlert<Content, Actions>: View where Content: View, Actions: View {
self.actions = actions()
}

var body: some View {
public var body: some View {
ZStack {
BackgroundView(background: configuration.background)
.edgesIgnoringSafeArea(.all)
Expand Down

0 comments on commit 2261709

Please sign in to comment.