Saving the selection of UISegmentedControl (Swift 4.x-5.0)
It happens that you need to save the previously selected value in the UISegmentedControl. Below is this solution.It would seem that there is difficult? After all, you just need to save the previously selected value. But just such a small function includes all the code below.
Post to Tumblr