@@ -43,7 +43,7 @@ extension View {
4343 /// - title: Title of the loader to be displayed.
4444 /// - showOverlay: Bool property to add black background behind the loader when it is active. By default it is false
4545 /// - isPresented: isPresented is used to toggle the loader's state
46- public func showLoader(
46+ func showLoader(
4747 _ title: String ,
4848 shouldShowOverlay: Bool = false ,
4949 isPresented: Binding < Bool >
@@ -61,7 +61,7 @@ extension View {
6161 /// - Parameters:
6262 /// - item: Error item to be displayed.
6363 /// - content: Closure to show `Alert` and display error message
64- public func showAlert< T: View > ( item: Binding < Error ? > , for duration: TimeInterval = 2.5 , content: ( Error ) -> T ) -> some View {
64+ func showAlert< T: View > ( item: Binding < Error ? > , for duration: TimeInterval = 2.5 , content: ( Error ) -> T ) -> some View {
6565 ZStack {
6666 self . allowsHitTesting ( item. wrappedValue != nil ? false : true )
6767 if let error = item. wrappedValue {
@@ -78,7 +78,7 @@ extension View {
7878 /// - Parameters:
7979 /// - isPresented: Bool to indicate to show Alert on the View heriracy
8080 /// - content: Closure to show `Alert` and display alert message
81- public func showAlert< T: View > ( isPresented: Binding < Bool > , for duration: TimeInterval = 2.5 , content: ( ) -> T ) -> some View {
81+ func showAlert< T: View > ( isPresented: Binding < Bool > , for duration: TimeInterval = 2.5 , content: ( ) -> T ) -> some View {
8282 ZStack {
8383 self . allowsHitTesting ( !isPresented. wrappedValue)
8484 if isPresented. wrappedValue {
@@ -90,7 +90,7 @@ extension View {
9090 }
9191 }
9292
93- internal func dismiss( delay: TimeInterval , completion: @escaping ( ) -> Void ) -> some View {
93+ func dismiss( delay: TimeInterval , completion: @escaping ( ) -> Void ) -> some View {
9494 self . onAppear {
9595 DispatchQueue . main. asyncAfter ( deadline: . now( ) + delay) {
9696 completion ( )
@@ -105,7 +105,7 @@ extension View {
105105 /// - showOverlay: Bool property to add black background behind the loader when it is active. By default it is false
106106 /// - options: This gives some View of type LoaderView
107107 @available ( * , deprecated, message: " use showLoader instead. " )
108- public func addLoaderView(
108+ func addLoaderView(
109109 for loaderAction: LoaderViewAction ,
110110 showOverlay: Bool = false ,
111111 options: LoaderOptions = LoaderOptions ( )
@@ -124,7 +124,7 @@ extension View {
124124 }
125125
126126 @available ( * , deprecated, message: " use showAlert instead. " )
127- public func addAlertView(
127+ func addAlertView(
128128 for alertAction: AlertViewAction
129129 ) -> some View {
130130 ZStack {
@@ -141,12 +141,12 @@ extension View {
141141 }
142142
143143 /// Uses VisualEffectsView to blur the background beneath the views
144- internal func loaderBackground( colors: [ Color ] ? = nil ) -> some View {
144+ func loaderBackground( colors: [ Color ] ? = nil ) -> some View {
145145 modifier ( LoaderBackground ( colors: colors) )
146146 }
147147
148148 /// Limits the font size for selected lines
149- internal func reduceFontSize( for line: Int ) -> some View {
149+ func reduceFontSize( for line: Int ) -> some View {
150150 modifier ( FontReducer ( line: line) )
151151 }
152152}
0 commit comments