Skip to content

Commit

Permalink
Fixed spelling of tapToDissmiss (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
spnkr authored Jan 19, 2022
1 parent 9d43115 commit bbaad23
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
BottomSheet Changelog
==================

#### v2.5.1
- Renamed tapToDissmiss option tapToDismiss

#### v2.5.0
- Update Copyright
- Update swift-tools-version
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ struct ContentView: View {

`.swipeToDismiss` Dismisses the BottomSheet when swiped down.

`.tapToDissmiss` Dismisses the BottomSheet when the background is tapped.
`.tapToDismiss` Dismisses the BottomSheet when the background is tapped.

## Custom States

Expand Down Expand Up @@ -242,7 +242,7 @@ struct BookDetailView: View {
LinearGradient(gradient: Gradient(colors: self.backgroundColors), startPoint: .topLeading, endPoint: .bottomTrailing)
.edgesIgnoringSafeArea(.all)

.bottomSheet(bottomSheetPosition: self.$bottomSheetPosition, options: [.noDragIndicator, .allowContentDrag, .showCloseButton(), .swipeToDismiss, .tapToDissmiss, .absolutePositionValue], headerContent: {
.bottomSheet(bottomSheetPosition: self.$bottomSheetPosition, options: [.noDragIndicator, .allowContentDrag, .showCloseButton(), .swipeToDismiss, .tapToDismiss, .absolutePositionValue], headerContent: {
//The name of the book as the heading and the author as the subtitle with a divider.
VStack(alignment: .leading) {
Text("Wuthering Heights")
Expand Down
6 changes: 3 additions & 3 deletions Sources/BottomSheet/BottomSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public struct BottomSheet {
///Dismisses the BottomSheet when swiped down.
case swipeToDismiss
///Dismisses the BottomSheet when the background is tapped.
case tapToDissmiss
case tapToDismiss

/**
The corresponding value of the raw type.
Expand Down Expand Up @@ -92,8 +92,8 @@ public struct BottomSheet {
return "showCloseButton"
case .swipeToDismiss:
return "swipeToDismiss"
case .tapToDissmiss:
return "tapToDissmiss"
case .tapToDismiss:
return "tapToDismiss"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/BottomSheet/BottomSheetArray.swift
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,6 @@ internal extension Array where Element == BottomSheet.Options {
}

var tapToDismiss: Bool {
return self.contains(BottomSheet.Options.tapToDissmiss)
return self.contains(BottomSheet.Options.tapToDismiss)
}
}

0 comments on commit bbaad23

Please sign in to comment.