Relative Content

Tag Archive for swiftuikit

How to synchronize button image changes in different controllers?

I have a view controller with a mute/unmute button. I also have a second view controller with the same mute/unmute button. If I click the button in the second controller view, the button image changes. And also at this moment I need to change the image in the first view controller. But how to do this? I need to call some action in the first view controller from the second view controller, like this:

How to synchronize button image changes in different controllers?

I have a view controller with a mute/unmute button. I also have a second view controller with the same mute/unmute button. If I click the button in the second controller view, the button image changes. And also at this moment I need to change the image in the first view controller. But how to do this? I need to call some action in the first view controller from the second view controller, like this:

How to synchronize button image changes in different controllers?

I have a view controller with a mute/unmute button. I also have a second view controller with the same mute/unmute button. If I click the button in the second controller view, the button image changes. And also at this moment I need to change the image in the first view controller. But how to do this? I need to call some action in the first view controller from the second view controller, like this:

How to set accessibility identifier for navigation back button?

I tried to add an identifier for the navigation back item, but is not working anymore. Before I’ve added the the accessibilityLabel, it was working, but I also need this one too. The label is working, but the identifier is not anymore. What can be the issue ?

Writing a function to draw objects to a View?

I’m a beginner in Swift and I’ve been trying to implement a function that iterates through a dictionary and draws the names of every element to the screen (with some stylizing ofc). I’ve tried the below approach: