CodeWithChris Blog
40 FOLLOWERS
We are helping beginners to learn Swift and iOS app development with our free affordable and high-quality coding education blogs and iOS tutorials. Our mission is to empower people to reach the full potential of their ambitions through coding and creativity.
CodeWithChris Blog
10M ago
Written by Joash Tubaga
Last Updated June 26, 2023
SwiftData, a groundbreaking framework for data modeling and management, is designed to amplify your Swift apps’ efficiency and reliability. Just like SwiftUI, SwiftData adopts a code-centric approach, eliminating the need for external file formats. It utilizes Swift’s innovative macro system to facilitate a fluid and seamless API experience.
A Look into SwiftData
SwiftData employs the expressivity offered by Swift’s new language macros to ensure a seamless API interface. It is naturally integrated with SwiftUI and functions compatibly with o ..read more
CodeWithChris Blog
10M ago
Written by J.C. Yee
Anyone who wants to start learning iOS Development will always feel overwhelmed by the hundreds of principles, concepts, and frameworks that you need to learn, one way or another. This is the crux of a constantly-evolving area in the tech industry, especially one that’s being controlled by Apple. Any knowledge that you’ll learn now, might be obsolete in a few years.
Fear not, however, as there are still timeless concepts that every beginner iOS developer should know before diving into the more complex aspects of building apps.
But first, why SwiftUI?
All the things that ..read more
CodeWithChris Blog
10M ago
Written by Iñaki Narciso on June 2023
Written for Swift 5.9 using Xcode 15 beta
A lot of apps have online features that require a network connection in order to work. For example, you need to be online to see the photos in your Instagram feed, or to load and read the latest news in Reddit.
If you’re creating an app with online functionality, you might need to depend on a backend API, and read or send data in the form of JSON.
In this article, we’re going to explore the Codable protocol, and how it can be used to convert to and from an external representation such as JSON.
The Codable Protoco ..read more
CodeWithChris Blog
11M ago
Written by Iñaki Narciso
Writing code can sometimes introduce a lot of ceremony (and repetition). This repetitive code is what we call a boilerplate code, and it lurks on a lot of projects out there!
Every year, Swift gets new language features that aims to gradually remove a lot of boilerplate code, all thanks to the developers active in the Swift community!
In this year’s WWDC, the Swift team introduced Swift Macros – a new way to allow developers to add language features that would eliminate boilerplate and generally make tedious things easier.
What are Swift Macros?
Before Swift Macros ..read more
CodeWithChris Blog
11M ago
Written by Joash Tubaga
This is an early look at SwiftData, a feature that was introduced in WWDC 2023. We will be releasing more articles and provide tutorials as we dive deeper into this feature in the coming weeks.
SwiftData, a groundbreaking framework for data modeling and management, is designed to amplify your Swift apps’ efficiency and reliability. Just like SwiftUI, SwiftData adopts a code-centric approach, eliminating the need for external file formats. It utilizes Swift’s innovative macro system to facilitate a fluid and seamless API experience.
A Look into SwiftData
SwiftData e ..read more
CodeWithChris Blog
11M ago
Written by Pat Enriquez
The reliance on mobile apps has increased in the last decade with more people becoming dependent on mobile devices for everyday convenience. With demand comes supply and looking at both the Google Play Store and the App Store, there are plenty to cater to and satisfy the market.
But one thing that could make or break your future in the industry is app performance. More than anything, app performance is the bread and butter of a mobile app. Poor app performance can mean slow loading time to incompatibility with devices, and many more. These factors can lead to a l ..read more
CodeWithChris Blog
1y ago
Written by Iñaki Narciso
Written for Swift 5.8 using Xcode 14.3
If you’ve read the Beginner’s Guide to Swift Functions article, you’d know that functions are one way to group code that executes together.
In this article, we’ll explore closures, an alternative way of grouping code. We’ll discuss what closures are, its difference to functions, and when best to use it.
Before we begin, I would recommend giving the Beginner’s Guide to Swift Functions a few minutes to read. It tackles concepts such as the function signature, function body, parameter arguments, and return type in greater detail. T ..read more
CodeWithChris Blog
1y ago
Written by Patricia Enriquez
With reports that the mobile app industry rakes in billions worth of revenue worldwide, it isn’t surprising that more people are getting into mobile app development. Even if money isn’t the main reason for developing apps, it is one of the contributing factors why many do so.
But how much money can you actually make from developing mobile apps? Depending on the different factors we will discuss, it can be as little or as much.
One-time Payment
About 94.5% of apps in the App Store are free and less than 7% are paid. But don’t be discouraged. There are people ..read more
CodeWithChris Blog
1y ago
Written by Iñaki Narciso
Written for Swift 5.7 using Xcode 14.2
This tutorial aims to recreate the UIPickerView Example and Tutorial (Updated 2018) in SwiftUI using the Picker view.
A Picker is a control that allows selecting a single value from a set of values, similar to what a dropdown does for a webpage. This tutorial will explore how to use a Picker, add it to a SwiftUI view, and make a selection.
Prerequisites
To follow this tutorial, you’ll need to have a Mac with Xcode installed.
Don’t have a Mac computer? Check out your options using Windows.
We’ll also cover the use of Swift enums ..read more
CodeWithChris Blog
1y ago
Written by Pat Enriquez
For many beginners, getting a job as an iOS developer is the ultimate goal. But getting your foot in the door is often more challenging than you think.
With tough competition, and oftentimes, companies looking for more experienced developers, getting your first iOS job is no easy feat. This is why it’s crucial to prepare and know how you can make yourself and your skills stand out, and land that sweet job.
After learning the fundamentals, working on your first few projects, and getting more comfortable coding from scratch, here are 5 things you can do to land your firs ..read more