How can I make an animation in stars? Swift -


here problem: developed app split teams soccer game. can count goals of each player. player makes goal has level up. want animation shows star been filled. how can this?

depends on way want animation like.

my suggestion make empty star (just border) , make full size. add on top of (thats filled).

before animation starts need resize star it's nonexistent (width , height zero)

filledstar.transform = cgaffinetransformmakescale(0, 0) 

and animate full size this

uiview.animatewithduration(0.5) {     filledstar.transform = cgaffinetransformidentity } 

you can play around spring animations on extends , goes full size, you.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -