Pick the fix
A custom floating action bar should match iOS 26. Best approach?
Hint 1 of 1
Use the system material on controls.
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Apply .glassEffect() to the bar's controls inside a GlassEffectContainer, gated with #available
Correct. It uses the system material and still supports older versions.
Why not the others?
- B Draw a blurred PNG background. It won't refract or adapt like the system material.
- C Apply glass to every list row. Glass belongs to controls, not content.
- D Keep an opaque custom background. It looks out of place next to system bars.