Open Terminal from Mac and run commands one by one. > sudo rm -rf /.DocumentRevisions-V100/ > rm -rf ~/Library/Developer/Xcode/DerivedData > rm -rf ~/Library/Developer/Xcode/Archives > rm -rf ~/Library/Developer/Xcode/iOS\ DeviceSupport > rm -rf ~/Library/Caches/com.apple.dt.Xcode > xcrun simctl delete unavailable What happens ?? 1. Removes the snapshot of opened documents. 2. Removes all derived data that generated from Xcode projects. 3. Removes the archived builds from all apps. 4 iOS device support files dropped. 5. Clear caches from Xcode. 6. Deletes unused & outdated iOS simulator versions.
Recently I published a countdown app . At one point of development - I have to show a timer on a UILabel which ticks on each seconds. As usual I started setting text to a label object - self .timerLabel.text = someString Easy piece of cake right !? But wait ... it won't take much user attention when timer ticks on every seconds. So I decided to make use of a simple animation while label gets text update. I found there are dozens of ways to animate a label. In this short article, I listed 3 best way you can animate text on a label. ( Spoiler Alert 👀- I decided to go with 3rd option) 1. Fade In - Fade out animation : CATransition class has got transition type `fade`. With timing function of CATransition - I was able to see the below result. let animation: CATransition = CATransition () animation.timingFunction = CAMediaTimingFunction (name: CAMediaTimingFunctionName .easeInEaseOut) animation.type = CATransitionType .fade animation.subtype = C...