Post

Replies

Boosts

Views

Activity

Reply to How to add another playground page
I'm not sure what problem you're facing, but based on your description, I'm guessing that this situation is caused by forgetting to change the contents of the Manifest.plist file? The Manifest.plist file should be under the Chapter folder and you need to change the 'Pages' array property in it to correspond to multiple playground pages. 🦁️🦁️🦁️🦁️🦁️
Apr ’21
Reply to UIView Animation won't Loop
Hi! You may have misunderstood how 'UIView.animate' works. When you execute 'UIView.animate' with loops, the program will not wait until the end of the animation before executing the next loop, So you're actually executing four animations at the same time. That's why you can only see the last animation. You need to start executing the next animation after the previous one has finished. The following code should solve your problem, but note that it is not necessarily the best solution. It's for helping you understand how it works. swift let data = [1, 2, 3, 4] var i = 0 func doAnimations() {   UIView.animate(withDuration: 1) {     // make animations here     // eg: view.frame.origin = CGPoint(x: data[i], y: data[i])   } completion: { (isFinished) in     i += 1     if i = data.count { return }     doAnimations()   } } 🦁️🦁️🦁️🦁️🦁️ Hope this helps you!
Apr ’21
Reply to College Documents for the Challenge
You have to get a proof of enrollment(在校证明) with the contact information for your educational supervisor(可以是校长、辅导员或类似职位人员)。 I haven't tried uploading a class schedule so I can't offer any experience in that area. And please note that the proof of enrollment needs to be bilingual! 🦁️🦁️🦁️🦁️🦁️ Hope this helps you!
Apr ’21