You should definitely check if the function get_field exists before you use it. Otherwise it might crash your site when you disable ACF for some reason.
Also why are you not using the default SVG-Item and set the Fill with ACF-Dynamic-Data-Tag in the RAW-Settings?
Crashes!? Wow! Didn’t knew about that. And didn’t realise it in ACF docs. Thanks for the warning.
And I will definitely comment this to ACF team.
Well… after thinking a bit, I suppose this is a general PHP thing, nothing to do with the plugin, I suppose.
(I’m not a programmer)
The default SVG option changes all the SVG’s fill and I have to target one specific class of a specific graphic inside it.