+1 for a sample. How does presenting a UITabBarController on top of the UISheetPresentationController make the sheet appear behind the tab bar but above the tab view controllers' content?
Only thing I can think of is maybe adding a UITabBar (which is a view) to the sheet itself at the bottom. But then I'd have to basically reimplement UITabBarController functionality from scratch and this would be very disruptive to my app's current structure (probably not worth the effort). That would get the "Find My app" look (which has a sheet that can't be dismissed). In my case I need a sheet that is dismissible.
I think a nice enhancement would be able to specify a passthrough view, or something of that nature on UISheetPresentationController. Something like:
@property (nonatomic,strong,nullable) UITabBar *passThroughTabBar;
So existing UITabBarControllers can easily add a sheet that doesn't block the tab bar. Or maybe something like this:
@property (nonatomic,strong,nullable) CGFloat bottomMargin; //assign the UITabBar's frame height to this so it floats above the tab bar instead of covering it.