Skip to content

Commit

Permalink
Removed deprectated View extension
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenTiigi committed Mar 2, 2023
1 parent c80c701 commit 238dadc
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions Sources/Extensions/View+WhatsNewSheet.swift
Expand Up @@ -3,27 +3,6 @@ import SwiftUI
// MARK: - View+sheet(whatsNew:)

public extension View {

/// [Deprecated] Presents a WhatsNewView using the given WhatsNew object as a data source for the sheet’s content.
/// - Parameters:
/// - whatsNew: A Binding to an optional WhatsNew object
/// - versionStore: The optional WhatsNewVersionStore. Default value `nil`
/// - layout: The WhatsNew Layout. Default value `.default`
/// - onDimiss: The closure to execute when dismissing the sheet. Default value `nil`
@available(*, deprecated, renamed: "sheet(whatsNew:versionStore:layout:onDismiss:)")
func sheet(
whatsNew: Binding<WhatsNew?>,
versionStore: WhatsNewVersionStore? = nil,
layout: WhatsNew.Layout = .default,
onDimiss: (() -> Void)?
) -> some View {
self.sheet(
whatsNew: whatsNew,
versionStore: versionStore,
layout: layout,
onDismiss: onDimiss
)
}

/// Presents a WhatsNewView using the given WhatsNew object as a data source for the sheet’s content.
/// - Parameters:
Expand Down

0 comments on commit 238dadc

Please sign in to comment.