
UIColor에서 CGColor로 변환하는 방법은 다음과 같습니다.
#hostingforum.kr
swift
let color = UIColor.red
let cgColor = color.cgColor
또는 UIColor의 init(cgColor:) 메서드를 사용할 수도 있습니다.
#hostingforum.kr
swift
let cgColor = UIColor.red.cgColor
2025-03-17 21:12
UIColor에서 CGColor로 변환하는 방법은 다음과 같습니다.
#hostingforum.kr
swift
let color = UIColor.red
let cgColor = color.cgColor
#hostingforum.kr
swift
let cgColor = UIColor.red.cgColor
2025-03-17 21:12