Many people are afraid to learn how to code because they think a lot of “Math” is involved. But to let you in on a bit of secret, it just depends on what you are trying to do. We only need to know the basics like addition, subtraction, division, multiplication, and sometimes PEMDAS (Parenthesis, Exponents, Multiplication, Division, Addition, Subtraction). Like every other language out there, Swift offers built-in methods to make our life easier think of it as using a calculator, except you are coding it! Before we jump into our next topic and talk about integers and floating-point numbers…
Back in the day, we had phones like the above picture. A simple telephone that you spun the dial to call out. In those times that was as basic as it could have gotten. Fast forward in time to the present, now we have “smart” phones that do practically everything for us. Like the rotary phone, we will walk through a multi-part series of Swift basics that will get you ready for any challenge given to us.
Now for beginner programmers that are just getting started, you might ask yourself, what are these words and what do they mean? …
As a user, we start up our application on our device and we never know what is exactly going on in our application. All we know is that this application is “Gorgeous, Beautiful, and even Spectacular”. But as a developer, we know what is going on in the code without looking at the code. We can tell this is a UITableView or even possibly a UICollectionView.
Today we are going to look just at UITableView. Specifically, we are going to look at building a ‘UITableView’ programmatically. Let’s look at two ways we can build this out. One is by creating…
Have you ever visited Paris? If you have, did you happen to stop at the Louvre? If so, you probably know that there’s a fantastic painting designed by the one and only Leonardo da Vinci called “The Mona Lisa.” Now we can’t help but wonder what was going on in his mind when Leonardo was creating this masterpiece.
As we look into designing applications for the AppStore, one thing we want to achieve is an excellent user interface. Creating unique styles in your application makes for a special moment, not only as a team but for consumer’s face also.
Whether you are working with an existing codebase or a brand new project, the question will come down to what is better suited for your needs. Now there are multiple options we could choose from when working with the user interface.
• Non-Storyboards (Programmatically Designing everything)
• Combination of all them
Now in this article were going to focus on the Non-Storyboards SceneDelegate setup. You are probably wondering what is so special about not using storyboards? …
When you look for inspiration whether it be from the great mind of yourself, or from sites like dribbble. Like the example above, we can see multiple buttons and labels that could be reusable.
Creating programmatic stored properties with the same methods is tedious and unnecessary. If it doesn’t follow the DRY concept then refactor it.
When writing code, and we notice that these two stored properties share some common interest.
• translatesAutoresizingMaskIntoConstraints = false
• font = UIFont.systemFont()
• textColor = .white
This is six lines of unwanted code. Let’s implement a…
Have you ever watched a YouTube video from someone and they open up a beautiful terminal window. The first thing that pops into your mind is WOAH that looks amazing! In this article I am going to over how to get that all setup with just the default theme they have provided.
Let’s get started, open up your terminal on your Mac. We have a few options we can do.
Your local terminal which can be found by pressing the following keys
"command + space" on…