diff --git a/Sources/FluentUI_iOS/Components/Bottom Sheet/BottomSheetController.swift b/Sources/FluentUI_iOS/Components/Bottom Sheet/BottomSheetController.swift index a0161c5e0..a8049ef27 100644 --- a/Sources/FluentUI_iOS/Components/Bottom Sheet/BottomSheetController.swift +++ b/Sources/FluentUI_iOS/Components/Bottom Sheet/BottomSheetController.swift @@ -871,13 +871,15 @@ public class BottomSheetController: UIViewController, Shadowable, TokenizedContr let availableWidth: CGFloat = view.bounds.width let maxWidth = min(Constants.maxSheetWidth, availableWidth) let determinedWidth: CGFloat + if shouldAlwaysFillWidth { determinedWidth = availableWidth - } else if Constants.minSheetWidth...maxWidth ~= preferredWidth { - determinedWidth = preferredWidth + } else if maxWidth > Constants.minSheetWidth { + determinedWidth = Constants.minSheetWidth...maxWidth ~= preferredWidth ? preferredWidth : maxWidth } else { determinedWidth = maxWidth } + return determinedWidth }