concept math in category ios

This is an excerpt from Manning's book Hello Swift!: iOS app programming for kids and other beginners.
4. Move the label to the center of the view until you see two dotted blue lines: one top to bottom and the other left to right. I call these lines guide grids. They help you align controls on the view so that you can (for example) center a label onscreen without doing math. When these lines appear, you’ve centered the label control in the view.
How to do math in a program ![]()
You’re all set to cover your third milestone: writing your first real Swift code by using variables. By now, you may be thinking that this whole programming business is a breeze. You’ve used the Swift Playground, and you’ve used the print() function to output words on the screen. You’ve created a playground by adding a line or two of code. Things are about to get not so simple, but they’ll be interesting and a lot of fun! In this chapter, you learn about using variables and doing math in your apps.