AppCoda - Learn Swift & iOS Programming by Doing
611 FOLLOWERS
AppCoda is an educational startup that focuses on teaching people how to learn Swift & iOS programming blog. Our mission is to develop high quality and easy-to-read iOS programming tutorials in both Swift and Objective-C for anyone who want to learn iOS programming and pursue app development.
AppCoda - Learn Swift & iOS Programming by Doing
3M ago
We're thrilled to announce that our Mastering SwiftUI ebook has been fully updated for iOS 18 and Xcode 16. This comprehensive update includes:
All content and source code now compatible with the latest iOS and Xcode versions
Brand new chapters covering iOS 18's new ..read more
AppCoda - Learn Swift & iOS Programming by Doing
4M ago
Apple's engineers may have long recognized the widespread desire among iOS developers to recreate the elegant hero animation featured in the App Store app. Understanding the complexity and time investment typically required to implement such animations from scratch, Apple has incorporated this feature into the iOS 18 SDK ..read more
AppCoda - Learn Swift & iOS Programming by Doing
7M ago
iOS already includes a system-wide translation feature that allows users to easily translate text into various languages. With the release of iOS 17.4 (and iOS 18), you can now leverage the new Translation API to integrate this powerful translation capability into your apps.
Apple provides two options for developers to utilize the Translation API. The quickest and simplest method is to use the .translationPresentation modifier, which displays a translation overlay in your app. For a more flexible solution, you can directly call the Translation API to build a custom translation featu ..read more
AppCoda - Learn Swift & iOS Programming by Doing
8M ago
Previously, we provided a brief introduction to Google Gemini APIs and demonstrated how to build a Q&A application using SwiftUI. You should realize how straightforward it is to integrate Google Gemini and enhance your apps with AI features. We have also developed a demo application to demonstrate how to construct a chatbot app using the AI APIs. The gemini-pro model discussed in the previous tutorial is limited to generating text from text-based input. However, Google Gemini also offers a multimodal model called gemini-pro-vision, which can generate text descriptions from images. In other ..read more
AppCoda - Learn Swift & iOS Programming by Doing
9M ago
At the upcoming WWDC, Apple is expected to announce an on-device large language model (LLM). The next version of the iOS SDK will likely make it easier for developers to integrate AI features into their apps. While we await Apple’s debut of its own Generative AI models, companies like OpenAI and Google already provide SDKs for iOS developers to incorporate AI features into mobile apps. In this tutorial, we will explore Google Gemini, formerly known as Bard, and demonstrate how to use its API to build a simple SwiftUI app. We are set to build a Q&A app that utilizes ..read more
AppCoda - Learn Swift & iOS Programming by Doing
10M ago
When SwiftUI was first released, one of the great features that piqued my interest was the instant preview function. This feature empowers developers to preview the user interface of any view within Xcode, entirely bypassing the need for a simulator. Prior to Xcode 15, the preview feature was exclusive to the SwiftUI framework. However, with the most recent release of Xcode, Apple expanded the utility of this feature to UIKit as well. In this tutorial, let’s see how you can make use of this preview feature when developing UIKit apps. Using #Preview to Preview View Controllers To preview a UIKi ..read more
AppCoda - Learn Swift & iOS Programming by Doing
11M ago
In any user interface, focus plays a crucial role in determining which element receives the next input. SwiftUI provides a powerful set of tools and view modifiers that allow you to control and manage focus in your apps. By using these modifiers, you can indicate which views are eligible to receive focus, detect which view currently has focus, and even programmatically control the focus state. In this tutorial, we will explore the ins and outs of SwiftUI’s focus management API, empowering you to create engaging and interactive user experiences. Specifically, we will dive deep into the usage of ..read more
AppCoda - Learn Swift & iOS Programming by Doing
1y ago
I recently received a question from a friend regarding barcode generation using Swift. The CoreImage framework provides convenient built-in APIs for creating various types of barcodes, including QR codes. In this tutorial, we’ll explore how you can leverage SwiftUI and these powerful APIs to develop your very own barcode generator. Let’s first take a look at the final result. It’s a very elementary barcode generation app with simple UIs. When you enter text into the designated field, the app instantly generates the corresponding barcode using the Code 128 format, which is used for alphanumeric ..read more
AppCoda - Learn Swift & iOS Programming by Doing
1y ago
In iOS 17, Apple introduced a new framework called SwiftData to replace the Core Data framework. Earlier, we have written an introductory tutorial about SwiftData and showed you how to pair SwiftData with SwiftUI. While there are numerous learning resources available for using SwiftData with SwiftUI, some readers have mentioned that finding comprehensive guides for integrating SwiftData into UIKit apps can be challenging. In this tutorial, we will delve into the process of leveraging the capabilities of SwiftData within the UIKit framework. A Quick Introduction about SwiftData To start off, le ..read more
AppCoda - Learn Swift & iOS Programming by Doing
1y ago
With the release of Xcode 15, Apple introduced an exciting feature called String Catalogs. This feature aims to streamline the localization process for your app, making it easier to manage all your strings in one central location. By leveraging String Catalogs, you can ensure that your app is fully localized before it reaches your users. This new feature offers both convenience and confidence in the localization process. In earlier versions of Xcode, you have to go through a string internationalization process that requires to modify the existing texts with the String(localized:) macro before ..read more