You should be able to use a placement environment variable and use onChange to detect a change of the variable.
Place this in your ContentView
@Environment(\.tabViewBottomAccessoryPlacement) var placement
Then use onChange to detect the change between inline and expanded.
However, it seems that this environment property might be broken as of now. I have attempted to use it to create custom views for the minimized/inline accessory with no success.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: