Swift Generics - AutoLayout Programmatically

To implement the same that was covered in “Swift Generics Tutorial” of
Raywenderlich
Created controls programmatically