Hm, viewBox is in the list of allowed attributes, however, with camelCase not like in your example without.
So you would have to add it to the Kirby\Sane\Svg::$allowedAttributes
array like described in the thread you linked above. Or change the spelling of your svg attribute.