Swift

The list of swift articles. Swift is essential language to develop iOS Applications. I have created tutorial which is easy to understand. So Let’s Dive :)

SOLID principles in swift

SOLID represents 5 five design principles intended to make object-oriented designs more understandable, flexible, and maintainable.  Let’s discuss one by one 1. Single Responsibility Principle Every class should have only one responsibilityExample: In below example class UserProfileManager is single responsibility class which has getUserProfile function 2.Open/Closed Principle Software entities such as classes, modules, and functions should be open for

SOLID principles in swift Read More »

How To Scroll To A Position Programmatically In UIScrollView

In general we use UIScrollView, UITableView or UICollectionView & sometimes we have to scroll programmatically to Top or bottom, so we can achieve it by using setContentOffset where we set where exactly to scroll Below are 4 helper methods which help in scrolling the Scroll view UIScrollView scroll to bottom UIScrollView scroll to Top UIScrollView

How To Scroll To A Position Programmatically In UIScrollView Read More »