iOS Simulator 10 does not refresh

I try to simulate a very very simple application which I have created in Xcode 9.2. I try to simulate it in the iOS Simulator in an iPhone6 with iOS 11.2. I have also tested other devices with the same result.

On a real device, the app works as expected. But on the simulator it doesn't.

I expect, that the button will become orange after I have clicked on it. and the emoji should disappear. Instead it changes into some strange "shadowed" look. If I wait then, the button will sometimes turn its background to orange after around 30 seconds.

The button gets also drawed correctly instantly, if i force the screen to update with a button press, or with draging down the info center.


I have recorded a movie, to illustrate the problem.


Update: (please reconstruct the links)

giphy. com/gifs/l4pSUuBtN7aBVvbVe

giphy. com/gifs/26DNe5B0vxIO6pHiw


Unfortunatley i cannot post it here due to the need of moderation if i add links.


The button gets refreshed, as soon as i drag down the info center.


Development machine: Mac mini 2011, i5, SSD, 8GB RAM, high Sierra


hope someone can help me.

hi pese acunt not finsh way

Im sorry, but im not sure what you mean.

Could you pleas clarify your opinion?

You can be sure, i have tried everything possible!


I also tested with the latest Version 9.3 beta 2 (9Q107o) from xcode


But if you think i have missed some important thing, please tell it to me.

I tested the following, works perfectly well.

Conf : XCode 9.2ß, OSX 10.12.6 ; tested for targets IOS 10.3 and IOS 11.2 on simulator.


@IBAction func touchCard(_ sender: UIButton) {
flipCard(withEmoji: " ", on: sender)
}
func flipCard(withEmoji emoji: String, on button: UIButton) {
if button.currentTitle == emoji {
button.setTitle("", for: UIControlState.normal)
button.backgroundColor = UIColor.orange
} else {
button.setTitle(emoji, for: UIControlState.normal)
button.backgroundColor = UIColor.white
}
}

The only difdference I see, is the explicit naming of UIColor.orange.

iOS Simulator 10 does not refresh
 
 
Q