Skip to content

Commit

Permalink
Adding public header for flippable view and init
Browse files Browse the repository at this point in the history
  • Loading branch information
mszpro committed Mar 21, 2024
1 parent 63fb6f1 commit d22dc71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/SwiftUILibrary/FlippableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ import SwiftUI
@available(iOS 13.0, *)
@available(macOS 11, *)
@available(watchOS 6.0, *)
struct FlippableView<Front: View, Back: View>: View {
public struct FlippableView<Front: View, Back: View>: View {

var cardFrontView: Front
var cardBackView: Back

@State private var isFlipped = false
private let animationDuration = 0.3

init(@ViewBuilder front: () -> Front, @ViewBuilder back: () -> Back) {
public init(@ViewBuilder front: () -> Front, @ViewBuilder back: () -> Back) {
self.cardFrontView = front()
self.cardBackView = back()
}

var body: some View {
public var body: some View {
VStack {
Spacer()
ZStack {
Expand Down

0 comments on commit d22dc71

Please sign in to comment.