Muthu Sabarinathan
Muthu Sabarinathan

Reputation: 1208

How to animate and fill color in uiimageview in ios Swift Language?

Right now am doing Weather based application in ios swift language. In this, i have a requirement like animating sun from time bases. Like below mentioned images.

enter image description here

This sun is going to animate like this.

enter image description here

Refer this Video for animation: https://www.dropbox.com/s/0buw9k3m4v6b169/IMG_0146.m4v?dl=0

Please give some reference links to do this kind of animation.

Upvotes: 4

Views: 714

Answers (1)

Abheyraj Singh
Abheyraj Singh

Reputation: 11

A way to do this is to create a UIBezierPath and make a CAKeyFrameAnimation follow it. Check this link for reference

Upvotes: 1

Related Questions