iOS Tutorials at AppCoda

Creating Reusable Libraries with CocoaPods and GitHub

Welcome back! In the previous tutorial, you learned how to use the Network Framework to detect and monitor the network status. The framework seems to be working fine through the NetStatus class, so let’s go one step further and let’s create our own small, open-source framework that will be based on the NetStatus class. In this tutorial, we will make this framework easily distributable and integratable by creating a pod using CocoaPods and we will even push it to GitHub.

Continue reading…

RESTful APIs Tutorial: Creating Your Own Lightweight REST Library in Swift

Most applications nowadays communicate with servers to exchange data, and they do so by consuming RESTful APIs, also called RESTful web services. Using REST, applications can send requests to servers, and servers send responses as answers back to client apps. The whole communication is based on standard rules that REST architectural style defines. Obviously, developers are meant to be able to use RESTful APIs either by integrating third-party libraries to their projects, or by implementing their own solution to achieve that.

Continue reading…

Using Google Cloud Translation API to Power Your App with Instant Translation

One of the several services and APIs that developers can use from Google is the Cloud Translation API, which offers the ability to perform machine learning (ML) based translations of any string into any supported language. The list of supported languages is long and it’s getting longer over time. Google provides pre-trained models for translation, but custom models can be trained as well. And as we will find out soon in this tutorial, translation is fast, accurate, and of high-quality.

Continue reading…

A Beginner’s Guide to Bezier Paths and Shape Layers

The process of developing apps includes amongst other things the creation of the user interface (UI) and all those simple or complicated views that appear on screen. There are different ways and different approaches to draw a simple “screen” of an app: To use already made graphics by designers, implement the UI in code, use Interface Builder, use a combination of them, and so on. However, there are always times that you need to create custom shaped views programmatically, and if you don’t know how, then problems start to arise.

Continue reading…

Using JavaScript in Swift Projects: Building a Markdown to HTML Editor

For a long time I wanted to write a post about how Swift and JavaScript can be tied together, and lead eventually to more powerful and rich-featured apps. Being able to embed JavaScript code in iOS projects is not something that you hear for first time, but if you have never tried to do that then you should really read this and find out how simple is to do magical things with just a few actions. The one that makes that magic available has a name, and is called JavaScriptCore framework.

Continue reading…