SlidingRuler icon indicating copy to clipboard operation
SlidingRuler copied to clipboard

Cannot use custom styles

Open radumpopescu opened this issue 4 years ago • 2 comments

I'm trying to use the custom styling like this:

[...].slidingRulerStyle(BlankCenteredSlidingRulerStyle())

However, I'm getting an error:

'BlankCenteredSlidingRulerStyle' initializer is inaccessible due to 'internal' protection level

From what I can tell, if an initializer is left out, it is added as internal by default.

radumpopescu avatar Nov 09 '21 16:11 radumpopescu

+1 same here

Weixuanf avatar Mar 31 '23 07:03 Weixuanf

I made a fork and fixed this: https://github.com/Weixuanf/SlidingRuler just adding public init() method to custom styles, now custom styles can be used as normal

Weixuanf avatar Mar 31 '23 09:03 Weixuanf