79137670

Date: 2024-10-29 14:40:18
Score: 0.5
Natty:
Report link

The only solution I've found so far is a total hack:

Instead of using a full detent, use context.maximumDetentIdentifier to ensure the detent is never actually full:

sheet.detents = [.custom(resolver: { context in
    0.999 * context.maximumDetentValue
})]

Screenshot of the same view controller in the question but with the presenting view controller underneath not scaled or dimmer

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Warpling