Good news. I found a very easy workaround that does not involve coding.
I downloaded the SF Symbols app to my computer and exported the medium.aqi image (which is only compatible with iOS 14 or later) to my hard drive. Then I renamed the image to "globe" which is a compatible image across multiple iOS versions. Finally I added the image named "globe" to my xcode assets folder and linked the image to the tab bar using Interface Builder.
Now the medium.aqi image is displayed whenever I use the "globe" image.
Post
Replies
Boosts
Views
Activity
Wow Claude thanks! It worked! You are awesome :)
The Data Container solution provided by OOPer is a good approach for
this problem. I am using a data container to pass data to my main View
Controller from a new Swift class that I am using to calculate the count
of fires manually rather than counting the fires in the rendered map
view.
OOPer, thanks I like your idea of using a data container. However the count in the container is returning 0 on the First View Controller (Dashboard) and it is returning the correct number in the Second View Controller (Map View). I wonder if the issue is that the map in the Second View Controller is rendered after the First View Controller is loaded. So the First View Controller never gets the count.
Sorry you are correct. I am using UIKit. My mistake