TMP "Overlay shader" invisible

Hey there, I am trying to apply the TextMeshPro build in shader “Distance Field Overlay” to my TMP Text to make it always render on top. However my TMP Component is never rendered or at least invisible with this shader applied. If the Canvas is set to screen space its only invisible in scene View but works in gameview, but if I set the canvas to 3D-Space its not showing up anymore. With the “Distance Field” shader its rendering as inteded so in general everything seems to be set up correctly.

If anyone had a similar issue and knows the solution to my problem I would be very grateful.

In case someone else encounters the same problem, one possible workaround appears to be setting TMPComponent.isOverlay = true.