Kitura is a new package based web framework for Swift 3.0 by IBM. As Swift is a compiled language, your Kitura application compiles to a binary that can either act as its own webserver (by default, on port 8090) or as a FastGCI server for use with Nginx or Apache. Features URL routing (GET, POST, PUT, DELETE) URL parameters Static file serving FastCGI support SSL/TLS support JSON parsing Pluggable middleware Starting first project To create executable package, create and switch to a directory. For example I have created a directory with name ‘ Todoapp ’ and moved in. Now in the terminal, $ swift package init will create folder structure for Kitura as shown Todoapp ├── Package.swift ├── Sources │ └── main.swift └── Tests Tip : In case swift file ~/Sources/Todoapp.swift created then rename to ~/Sources/main.swift. In the Package.swift add ‘dependencies’. /***** Package.swi...
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...