Loading...
Images of Radu Nunu
(0 from 0 )News
[SOLVED] how do I listen for a change of value in a variable using...
tutel.me
@Radu Nunu :26:17. You can implement willSet in your variable to call your function everytime when variable is changing. Also you can modify your function to get new value like this: var pickedCountry: String? { willSet( newValue) { guard let oldValue = str, new = newValue else { return } if oldValue != new {
sorted by relevance / date