'Check for a string in a debug message in Swift

I have a View with a view.backgroundColor. When I print the value to the debug-log i get

<UIImage:0x283b31b00 named(main: bg_200_200) {200, 200} renderingMode=automatic>

Is it possible to check this "String" (I know it's not a real string) for an occurence of a text, e.g. if it contains "bg_200"? Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source