tvOS 용 앱을 만들고 있습니다. UIButton의 색상을 설정하려고하지만 올바른 방법을 모릅니다. 버튼에 초점이 있지만 버튼에 포커스가없는 경우 내가 못생긴 결과를 얻을 때UIButton 유형의 색상을 설정하는 방법 : Swift에서 tvOS 용 .system
var buttonA: UIButton(type: .system)
var buttonB: UIButton(type: .system)
...
buttonA.backgroundColor = UIColor.green
buttonB.backgroundColor = UIColor.red
나는 결과에 행복하다. 녹색 버튼의 색상 레이어에 cornerRadius가 없습니다.
어떻게 올바르게 버튼 색상합니까?