ZKGradientView is custom view on which we can apply gradient background color. You can assign any UIView this class and then need to assign start and end color.
Install ZKGradientView with cocoapods by adding the following line in your pod file.
pod 'ZKGradientView'After that go to project root directory on terminal and run
pod install