Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
phjs committed Apr 26, 2022
1 parent 275ec4c commit 2a9322a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ let whatsnew = WhatsNew(
backgroundColor: .accentColor,
foregroundColor: .white,
hapticFeedback: .notification(.success),
onDimiss: {
onDismiss: {
print("WhatsNewView has been dismissed")
}
),
Expand Down Expand Up @@ -347,7 +347,7 @@ let version: WhatsNew.Version = .current()
A `WhatsNew.Title` represents the title text that is rendered above the features.

```swift
// Initialize by string literla
// Initialize by string literal
let title: WhatsNew.Title = "Continue"

// Initialize with text and foreground color
Expand Down
2 changes: 1 addition & 1 deletion Sources/Extensions/View+WhatsNewSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public extension View {
/// Auto-Presents a WhatsNewView to the user if needed based on the `WhatsNewEnvironment`
/// - Parameters:
/// - layout: The optional custom WhatsNew Layout. Default value `nil`
/// - onDimiss: The closure to execute when dismissing the sheet. Default value `nil`
/// - onDismiss: The closure to execute when dismissing the sheet. Default value `nil`
func whatsNewSheet(
layout: WhatsNew.Layout? = nil,
onDismiss: (() -> Void)? = nil
Expand Down

0 comments on commit 2a9322a

Please sign in to comment.