knutigro / COBezierTableView

Custom TableView written in Swift where cells are scrolling in an arc defined by a BezierPath. Project even include classes for testing and constructing new BezierPaths for testing new UI.
MIT License
410 stars 24 forks source link

How to Create Half Circle #16

Open alipishvaee opened 6 years ago

alipishvaee commented 6 years ago

hi.i've used this library a lot but unfortunately I can not make the table view curved like a half circle although I've changed lot's of things in library files.please guide me.

knutigro commented 5 years ago

Hi, @alipishvaee. Cool that you use the control.

You should only have to change one of the four params

        UIView.BezierPoints.p1 = CGPoint(x: 0, y: 0)
        UIView.BezierPoints.p2 = CGPoint(x: 0, y: 0)
        UIView.BezierPoints.p3 = CGPoint(x: 0, y: 0)
        UIView.BezierPoints.p4 = CGPoint(x: 0, y: 0)

Did you try to use the editor?

alipishvaee commented 5 years ago

I tried these value but it did not worked.also my half circle is positioned on the right of the screen.

alipishvaee commented 5 years ago

I think it would be nice if you add more points.i mean maybe 8 point may solve the problem.also it would be nice if you consider the RTL in the library