Skip to content

Commit

Permalink
set public
Browse files Browse the repository at this point in the history
  • Loading branch information
devmehmetates committed Mar 2, 2024
1 parent 4e27ff6 commit c0e0de8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/ErrorableView/Abstract/ErrorableViewModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import SwiftUI

struct ErrorableViewModifier<ErrorContent: ErrorableView>: ViewModifier {
public struct ErrorableViewModifier<ErrorContent: ErrorableView>: ViewModifier {
@State private var sheetTrigger: Bool = false
@Binding var pageState: PageStates
var errorContent: ErrorContent
Expand All @@ -18,7 +18,7 @@ struct ErrorableViewModifier<ErrorContent: ErrorableView>: ViewModifier {
self.errorContent = errorContent()
}

func body(content: Content) -> some View {
public func body(content: Content) -> some View {
switch errorContent.type {
case .onPage:
onPageState(content: content)
Expand Down
4 changes: 2 additions & 2 deletions Sources/ErrorableView/Views/DefaultErrorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

import SwiftUI

protocol ErrorableView: View {
public protocol ErrorableView: View {
var type: ErrorPresentTypes { get set }
}

@frozen public struct DefaultErrorView: ErrorableView {
var uimodel: DefaultErrorPageUIModel = .Builder().build()
var type: ErrorPresentTypes = .sheet
public var type: ErrorPresentTypes = .sheet
var buttonAction: (() -> Void)? = nil

public var body: some View {
Expand Down

0 comments on commit c0e0de8

Please sign in to comment.