Home:ALL Converter>Add padding to a general View programmatically with swift

Add padding to a general View programmatically with swift

Ask Time:2018-10-10T00:28:19         Author:Marco Ghigo

Json Formatter

Is there a "general syntax" for add a padding on any UIView created programmatically in Swift?

For example I've created a UITextField() and a UILabel(), is there a common method to add to them a padding?

Author:Marco Ghigo,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/52725499/add-padding-to-a-general-view-programmatically-with-swift
yy