Skip to content

Commit

Permalink
Fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroruizponce committed Nov 19, 2024
1 parent febfca2 commit 93b9001
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import UIKit
final class BottomSheetInteractiveDismissalTransition: NSObject {
private enum Constants {
static let maxBouncingHeight: CGFloat = 250
static let animationDuration: CGFloat = 0.25
@MainActor static let animationDuration: CGFloat = UIView.defaultAnimationDuration
static let animationCurve: UIView.AnimationCurve = .easeOut
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public extension EnvironmentValues {
}

@available(iOSApplicationExtension, unavailable)
private struct SafeAreaInsetsKey: EnvironmentKey {
static var defaultValue: EdgeInsets {
EdgeInsets()
private struct SafeAreaInsetsKey: @preconcurrency EnvironmentKey {
@MainActor static var defaultValue: EdgeInsets {
UIApplication.shared.keyWindow?.safeAreaInsets.swiftUiInsets ?? EdgeInsets()
}
}

Expand Down

0 comments on commit 93b9001

Please sign in to comment.