Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Rideau/Core/RideauView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ extension RideauView {
/**
A view that manages sheet UI.

You may use ``RideauContentType`` in a view what you want to show in the sheet.
You may use ``RideauContentType`` in a view what you want to show in the sheet.
*/
public final class RideauView: RideauTouchThroughView {

Expand Down Expand Up @@ -296,7 +296,7 @@ public final class RideauView: RideauTouchThroughView {
}

let screenHeight = UIScreen.main.bounds.height
return screenHeight - v.cgRectValue.minY
return max(0, screenHeight - v.cgRectValue.minY)
}

var animationDuration: Double {
Expand Down
Loading