Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about cabasicanimation

Read more about cabasicanimation

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - cabasicanimation

Animate startAngle in UIBezierPath in UIView

I have a UIView subclass, which draws an arc inside its frame. The draw method looks like this: override func draw(_ rect: CGRect) { let clockwise = true let center: CGPoint = CGPoint(...
test-img

Dan Donaldson

swift

uiview

uibezierpath

cabasicanimation

Votes: 0

Answers: 1

Latest Answer

Rather than drawing the path in draw, you can use a layer-based approach. Add a CAShapeLayer as a sublayer of your view. let arcLayer = CAShapeLayer() arcLayer.path = yourFullArc arcLayer.strokeColor ...
test-img

Sweeper

CAShapeLayer path animation shrinking before completing animation

I am trying to animate a rotation of a layer's CGpath. The rotation works perfectly, but for some reason, the path seems to shrink, then get bigger again. I just want it to show a rotating animation. ...
test-img

Ungrace

ios

swift

uibezierpath

cgaffinetransform

cabasicanimation

Votes: 0

Answers: 1

Latest Answer

Your "cutout box" is shrinking and growing because you're using path animation. When you animate a path from one set of points to another, each point will take a straight line from its start...
test-img

DonMag

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved