
UIDrawStroke 클래스의 getThickness 메소드는 stroke의 두께를 반환하는 메소드입니다.
이 메소드는 stroke의 두께를 가져오기 위한 것입니다.
stroke의 두께를 변경하려면, stroke의 path를 만들고, path의 lineWidth 프로퍼티를 변경하여 두께를 조절할 수 있습니다.
예를 들어, 다음 코드를 참고하세요.
#hostingforum.kr
swift
let path = UIBezierPath()
path.lineWidth = 5 // 두께를 5로 설정합니다.
path.stroke()
또한, UIDrawStroke 클래스의 setThickness 메소드를 사용하여 두께를 변경할 수도 있습니다.
#hostingforum.kr
swift
let stroke = UIDrawStroke()
stroke.setThickness(5) // 두께를 5로 설정합니다.
2025-06-20 00:12