I'm looking to get both of these values at runtime.
Imagine that for certain reasons this name cannot be set anywhere in the code. Only in IB. But I could have an array of all possible image names in my code.
let images = ["black_76", "black_152", ...and so on]
With the intention then being able to do:
if images.contains(nameOfImageInIB) {
//do stuff
}
acessibilityIdentifier
was a good idea presented by people but as an imageView or button can have multiple images associated with it but only one acessibilityIdentifier, it wouldn't work.
The end goal is to be able to use only IB properties to somehow come up with the name of my image in the code. Setting the tag to the index of the name in the array would possibly work, but again, I can only have one tag but have two images I need to look up.
Additionally, trying to avoid adding IBDesignable to my code and just use what's already provided by default in IB.