I am trying to generate a background that automatically conforms to the size of the 3D that my program generates using ARKit. Is their a way to do that using swift/xCode or is there a way to calculate what size the background would have to be?
For example: text1 = "abc"
would only need a small background, where as: text2 = "abcdefg \n 1234567 \n testing123"
would need a bigger background, and the text and background would also vary with the size of the text.