Color_well_1.layer?.cornerRadius = Color_well_1.bounds.height/2
Пробовал закруглить так, но выдаёт ошибку:
Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
Если убираю знак вопроса после layer, то выдаёт такую ошибку:
Value of optional type ‘CALayer?’ must be unwrapped to refer to member ‘cornerRadius’ of wrapped base type ‘CALayer’
Подскажите что делать?