How do you style iOS UIElements in Swift? -
i absolutely dumbfounded on concept of styling elements in swift. i'm used html/css forgive me if i'm not using correct terminology. i'm used being able thiselement
has style
width: 50%; height: 100px; background-color: #ff00ff;
what equivalent. aware i'm new of this.
the closest can called appearance proxy. lets set common features of widgets of common type, , called app starts up.
also, though, keep in mind you're working here object-oriented universe. if did have, say, button needed 100 50 in size , appears in many places in app, subclass uibutton , have subclass configure size - , use subclass wherever wanted button looked that.
Comments
Post a Comment