SwiftSlowly

100 Days of SwiftUI - Day 34 (Part Deux)

All answers correct in animation

It’s been a while since I posted a score on one of the tests. I’m doing it this time because I’m pretty proud of myself for doing this section again. I really want to understand this part going forward.

Continue reading →

100 Days of SwiftUI - Day 33 (Part Deux)

Today felt much better when it comes to getting the material. I’m really glad that I decided to do it again, and wish that I had done it earlier in the day so that I can reflect on it more.

Maybe I can sleep on it?

Continue reading →

100 Days of SwiftUI – Day 32 – Hacking with Swift (Part Deux)

Animation Testing

It feels good to accomplish something like this. The first time I looked at the material, I felt I was just going through the motions. Maybe it was a little bit of burn out with changes at work.

Today, I spent as much time just messing around with what I can do and I think that it’s a much more enjoyable experience.

Continue reading →

100 Days of SwiftUI – Restarting from day 32 – Hacking with Swift

Sometimes life changes a little bit or something comes along and makes you rethink what you are doing.

I was going through the last couple of days and I realized that this portion wasn’t sinking in as much as I would like. I could power through it, but I don’t want to.

Animations are really cool and can make an application really pop.

Also, this whole process is self directed. I don’t want to push something if I am not satisfied.

Continue reading →

100 Days of SwiftUI – Day 32 – Hacking with Swift

Today is an introduction to animation and I’m really looking forward to it.

Today we’ll be looking at easier animations, but tomorrow we’ll progress onto more difficult stuff – it’s a good idea to be aware of both, so you can tackle whatever problems come up in the future.

Today’s post is going to be short because I’m going to be doing some experiments in swift with binding animation and the xcode-beta that I’m running has already crashed twice.

Continue reading →

100 Days of SwiftUI – Day 31 – Hacking with Swift

Changes in the application

The apps continue to show more and more of what I can do in Swift and I’m really enjoying the feeling of getting through the challenges.

Obviously I want to get you towards SwiftUI greatness as fast and effectively as possible, but that takes a lot of consistency from you. To be fair, it is already day 31 and you keep coming back, so you’re fulfilling your part of the deal – well done!

What I liked about this particular app is that I had an opportunity to go back to an older project and cherry pick things from that to make this one better. With more experience and understanding, I really reinforced what I was learning.

Continue reading →

100 Days of SwiftUI – Day 30 – Hacking with Swift

For today’s activity, I started it in the afternoon after a long day. I spent too much time looking up keyboard short cuts to get the Xcode preview to start (command+option+p).

Here are some good links.

After I got that out of my system, I was able to start focusing on the task at hand.

Continue reading →

100 Days of SwiftUI – Day 29 – Hacking with Swift

A lot of people have mixed feelings about Monday’s. For me, I look at them with gratitude that I’m still employed. After this last weekend, I’m just happy that I don’t have to think about that disaster called a super bowl and can get back to “Hacking with Swift”!

Imagine my surprise to see this as the first line of today’s activity!

It’s time for another new project, and this is actually the last easy project we have on this course – after this the difficulty level ramps up a little as we tackle bigger apps, so enjoy this while it lasts!

The last couple of projects have really started to dive into some of the frameworks and just hope that I’ve given myslef enough time to really let the lessons stick in my brain as I move forward.

Continue reading →

100 Days of SwiftUI – Day 28 – Hacking with Swift

I’m pretty happy that this review day landed on a Sunday. It lets me go over my previous posts and to enjoy the Superb Owl.

That’s where I want you to reach with SwiftUI – to know that when you have a new project idea you can reach for part of project 1, part of project 3, part of project 4, and beyond, and already be 75% towards your goal. You’ll get there – just keep coming back each day!

Continue reading →

100 Days of SwiftUI – Day 27 – Hacking with Swift

I’ve decided to change the default title for these posts to reflect what resource that I’m working on and make sure that all post related to my journey with Swift are in the “SwiftSlowly” Category.

Today’s activity is about CoreML and I can already tell that it’s going to be something that I’m going to have to review a little more.

Today we’re going to build our project, combining both SwiftUI and Core ML in remarkably few lines of code – I think you’ll be impressed.

The source material is amazing!

Continue reading →

Swift Slowly: Day 40 - Hacking Swift 26

I’ve finished a quarter of the program! I’m pretty proud of myself for doing that. With everything going on it was good to have a nice project like this to work on.

That being said, I was very happy to see the following quote.

However, I want to say that if at any point you’re feeling tired, or if life just gets in the way, take a break! If you come back to your code in a day or two, you’ll be more relaxed and ready to learn. Like I said at the beginning, this is a marathon not a sprint, and you won’t learn effectively if you’re stressed.

I’m very tempted to take today off, but I’m also just as pumped to play around with the material before WandaVision comes on tonight.

Continue reading →

Swift Slowly: Day 39 - Hacking Swift 25

Today is a consolidation and challenge day! I’m a quarter of the way through this and I’m pretty excited and grateful to have made it this far. With that comes a little more stress as I’m venturing out on my own to do small challenges along the way.

Which brings me to the challenge!

Challenge

You have a basic understanding of arrays, state, views, images, text, and more, so let’s put them together: your challenge is to make a brain training game that challenges players to win or lose at rock, paper, scissors.

The first thing I did was take some time to sketch out what I want the application to look like.

Continue reading →

Swift Slowly: Day 38 - Hacking with Swift 24

It’s the middle of the week and it’s a good time to do some Swift development!

I’m a little struck by one of the things that Paul wrote in today’s exercise.

Albert Einstein once said, “any fool can know; the point is to understand,” and this project was specifically about giving you a deeper understanding of what makes SwiftUI tick. After all, you’ll be spending the next 76 days working with it, so it’s a good idea to make sure your foundations are rock solid before moving on.

Today’s activity is to go back and cement what I’ve learned by accomplishing three challenges. I get most of the changes, but it seems like some of the code has changed over time.

Continue reading →

Swift Slowly: Day 38 - Hacking Swift 23

Today’s activity is research.

I’m a little nervous about what is coming next because this was the first time that I saw the syntax for templates and custom containers.

I’m going to have to read it again before I go to bed and hope that it makes more sense in the morning.

Continue reading →

Swift Slowly: Day 36 - Hacking Swift 21

Project 2, Part 2 almost sounds like a title for an action parody, but it’s the title for today’s work. I think the following really captures what I’m feeling:

Oprah Winfrey once said, “do what you have to do until you can do what you want to do.” By the end of this 100 days course I hope you’ll be able to do exactly what you want, but in the meantime stick with it – you’re learning key skills here!

To be honest, the first app does looks very basic in the middle of the project and I feel like I’m fighting my own ego in the fact that my application isn’t on the same level that you’d see in the app store. Then I have to take a step back.

Continue reading →

Swift Slowly: Day 35 - Hacking Swift 20

I’m fresh off the high of creating my first application and I SO want to charge ahead. I keep thinking “It’s a marathon, it’s a marathon, it’s a marathon.”

Today’s activity is pretty fun in that it allows me to experiment with colors. I spent some time just messing around with how to expand my application.

Continue reading →

Swift Slowly: Day 34 - Hacking Swift 19

Today is challenge day!

I’ve been looking at the page for about 20 minutes. Then surfed the internet for another 20.

I’m procrastinating.

I’m intimidated because I’ve been playing with Swift for a while but this is the fist time that I said “Hey, I’m going to make an app”.

It’s always been accompanied by some tutorial instructions.

Well, let’s start!

The first thing I did was use Xcode to check in the initial tutorial code changes.

Continue reading →

Swift Slowly: Day 32 & 33 - Hacking Swift 17 & 18

Power was out for two days and the this was one of the first things that I did1! It felt great to get back into the swing of things. I also took the quiz that is associated with the application and scored 12 out of 12!

Tomorrow is Challenge day for this project, so I’m going to use the time that I have tonight to go over some of the previous days and to check out Paul Hudson’s video on 5 Steps to Better SwiftUI Views.

Continue reading →

Swift Slowly: Day 31 - Hacking Swift 16

Day 16! Starting the first project after a long day of work. Part of me wants to just veg, but I’ve wanted this too long!

100 Days of SwiftUI – Day 16 – Hacking with Swift:

Today is the project overview day, which is where we’ll be looking at the isolated pieces of code that you need to understand in order to build our project. Tomorrow we’ll move on to the implementation day, where you’ll put those new techniques into practice with our app.
Xcode main window

My mind was kind of blown when I saw the line following line:

Continue reading →

Swift Slowly: Day 28 - Hacking Swift 12

The neighbors were up arguing from 3-5 in the morning and it woke the whole family up. I’m having trouble focusing, but I wanted to get started with learning about optionals today.

This is the last section of 100 days of SwifUI that contains quizzes so I’m pretty excited about what happens after this.

I want to praise CodeRunner again for its excellent tool tips when code is incorrect.

Continue reading →

Swift Slowly: Day 27 - Hacking Swift 11

I’m up past midnight and thought that programming is probably the best thing to do.

So tonight/today, I’m learning about Protocols and extensions.

When it came to extensions, I think I learned just as much about the once that I got wrong as the ones that I got correct.

Three wrong answers in a row

Continue reading →

Swift Slowly: Day 27 - Hacking Swift 10

Score card for class. Today is really cool because not only am I celebrating the inauguration of Joe Biden, but I’m on day 10 of Hacking with Swift!

Pretty proud of myself for the most part because most of my errors where me not reading the question correctly.

Continue reading →

Swift Slowly: Day 26 - Hacking Swift 9

We continue with structs today and I think I’m getting it for the most part. The issues that I run into are ones where I don’t pay attention to property names.

Wrong property name.

This session wasn’t as long as others, but I feel that I needed that after going through closures.

Continue reading →

Swift Slowly: Day 25 - Hacking Swift 8

Today, is an exploration of structs. A lot of Swift seems to be built using structs. I wasn’t 100% awake when I was doing the computed properties section.

I tried mixing property observers and computed properties, and that does not seem to work.

You cannot compute and observe values at the same time

I understand it as the value cannot be both observed and computed at the same time.

Continue reading →

Swift Slowly: Day 24- Hacking Swift 7

Closures part 2!

Paul Hudson says that this is where closures start to look a little bit like line noise and it can be hard to follow functions that use closures as parameters. Needless to say, I’m happy that I started this section early in the day.

Text that shows when you get an answer correct.

Continue reading →