2

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?

George
  • 25,988
  • 10
  • 79
  • 133
  • Are you talking about how do you make a text field and a label with a space in-between? If you are, have a [look at constraints](https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/ProgrammaticallyCreatingConstraints.html). – George Oct 09 '18 at 16:40
  • 1
    https://stackoverflow.com/a/32368958/4637057 – Vincent Joy Oct 09 '18 at 17:22

0 Answers0