How to draw gradient background for uiview in iOS swift

This tutorial has been updated for X code 7.3 & swift 2.2 Gradients are becoming more popular with iOS 8 & swift. You can see them from logo of swift to many new apps build for iOS 8. And if you draw it programmatically then you don’t have to worry about scaling for different size iPhone or […]