HHK1 / PryntTrimmerView

A set of tools to trim, crop and select frames inside a video
MIT License
835 stars 199 forks source link

Visible white TrimmerView corners #48

Closed cosmicvarion closed 4 years ago

cosmicvarion commented 5 years ago

The TrimmerView corners are square whereas the start/end handle corners are rounded. So, with a non-white background and non-white handles, points of white are visible from the underlying bar at the corners of the handles.

blurtime commented 5 years ago

Here my small workaround:

let trimmerView: TrimmerView = {
    let trimmer = TrimmerView()
    trimmer.layer.cornerRadius = 3 //2 should actually suffice but there was still a tiny bit visible so I set it to 3
    trimmer.layer.masksToBounds = true
    return trimmer
}()
HHK1 commented 4 years ago

Solved, thanks @blurtime for your PR !