CalendarKit icon indicating copy to clipboard operation
CalendarKit copied to clipboard

Customise corner radius for day selection

Open gerchicov-vg opened this issue 6 months ago • 1 comments
trafficstars

New Issue Checklist

Issue Description

In my particular case I need to make a corner radius smaller. And currently it requires to edit inner library code.

Code I'm using with CalendarKit

Result I am trying to achieve

As I understand this corner radius is set here: https://github.com/richardtop/CalendarKit/blob/master/Sources/Header/DaySelector/DateLabel.swift

    override public func layoutSubviews() {
        layer.cornerRadius = bounds.height / 2
    }

there is also an option private var style = DaySelectorStyle() which could contain an info about corner radius.

gerchicov-vg avatar May 19 '25 08:05 gerchicov-vg