Skip to content

Commit

Permalink
Forgot to change access levels. Fixing it
Browse files Browse the repository at this point in the history
  • Loading branch information
joogps committed Apr 28, 2021
1 parent 4500bc9 commit f6cb0e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Sources/SlideOverCard/Manager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

import SwiftUI

struct SOCManager {
static func present<Content:View>(isPresented: Binding<Bool>, onDismiss: (() -> Void)? = nil, options: SOCOptions = SOCOptions(), style: UIUserInterfaceStyle = .unspecified, @ViewBuilder content: @escaping () -> Content) {
public struct SOCManager {
public static func present<Content:View>(isPresented: Binding<Bool>, onDismiss: (() -> Void)? = nil, options: SOCOptions = SOCOptions(), style: UIUserInterfaceStyle = .unspecified, @ViewBuilder content: @escaping () -> Content) {
let rootCard = SlideOverCard(isPresented: isPresented, onDismiss: {
dismiss(isPresented: isPresented)
}, options: options, content: content)
Expand All @@ -26,7 +26,7 @@ struct SOCManager {
}
}

static func dismiss(isPresented: Binding<Bool>) {
public static func dismiss(isPresented: Binding<Bool>) {
withAnimation {
isPresented.wrappedValue = false
}
Expand Down
6 changes: 3 additions & 3 deletions Sources/SlideOverCard/SlideOverCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ public struct SOCOptions: OptionSet {
self.rawValue = rawValue
}

static let disableDrag = SOCOptions(rawValue: 1)
static let disableDragToDismiss = SOCOptions(rawValue: 1 << 1)
static let hideExitButton = SOCOptions(rawValue: 1 << 2)
public static let disableDrag = SOCOptions(rawValue: 1)
public static let disableDragToDismiss = SOCOptions(rawValue: 1 << 1)
public static let hideExitButton = SOCOptions(rawValue: 1 << 2)
}

struct SlideOverCard_Previews: PreviewProvider {
Expand Down

0 comments on commit f6cb0e2

Please sign in to comment.