Ternary for clipShape swift – Ios swift
I am trying to pick a clipShape based on a boolean value. .clipShape( noText ? Circle() : Capsule() ) this will not work because of this error: Result values in '? :' expression have mismatching types 'Circle' and 'Capsule' What…