Skip to main content

12 posts tagged with "Swift Programming"

Swift programming tutorials and best practices

View All Tags

How to Integrate WebRTC in Swift for Video & Audio Chat

· 3 min read
Full Stack Developer
Last updated on September 5, 2023

swift webrtc

WebRTC (Web Real-Time Communication) is a powerful technology that enables real-time communication (like video and voice chats) in web and mobile applications. Integrating WebRTC into iOS applications often involves a combination of the native WebRTC SDK and bridging techniques to adapt it for specific platforms like SwiftUI or UIKit.

Firebase Swift Tutorial: Login and User Registration on iOS

· 12 min read
Full Stack Developer
Last updated on October 11, 2022

Firebase is having great momentum these days. It has gained a lot of traction among mobile developers, who are truly embracing this backend-as-a-service concept. We are using it for all of our iOS app templates. In this Firebase Swift tutorial, you'll learn how to build the login and registration screens that you can find in most of our apps. This is one of the first tutorials on this topic (Firebase Swift tutorials), and we're super excited to make this a wonderful course series. At the end of this Swift Firebase tutorial, we're going to finish these beautiful functional onboarding screens:

swift boilerplate

How to Implement a Map View in SwiftUI

· 5 min read
Full Stack Developer
Last updated on October 8, 2022

mapview swiftui

Hello everyone, welcome back to our SwiftUI tutorial series. This time, we are going to learn one of the important features of iOS in particular and mobile in general: MapView. With SwiftUI, using a MapView in your app is not as trivial as it used to be. But it is totally possible to use a Map View in SwiftUI, which is what we tackle in this SwiftUI tutorial.

How to convert HEX colors to UIColor in Swift 5?

· 2 min read
Full Stack Developer
Last updated on October 11, 2022

There are many situations when you want to create an UIColor object from a hex color string. In this post, we provide a code sample that will help you convert hex colors to UIColor objects. While generally, you can get away with this by manually converting the hex code to RGB (using an online converter, for example), there are scenarios where your colors are dynamic, so you'll need a utility method that converts the hex code to an RGB color in Swift 5.

How to integrate Apple Pay into your iOS app (Swift)

· 4 min read
Full Stack Developer
Last updated on October 4, 2022

In this article, we are describing in details how to integrate Apple Pay into an iOS app. We'll code in the latest version of Swift and the code samples are extracted from our beautiful app templates, many of which have built-in support for Apple Pay. Feel free to download them directly, if you want to skip the hassle of learning how to integrate Apple Pay by yourself.

Firebase Facebook Login in Swift – Tutorial

· 7 min read
Full Stack Developer
Last updated on August 17, 2022

With the release of Swift 5 approaching and Firebase Firestore finally getting out of beta, let's take a look at how the Firebase Facebook Login is implemented in Swift. All of our Swift app templates have Facebook support since it's a widely demanded feature, so let's see how we implemented it.

Device to Device Push Notifications in Swift with Firebase

· 3 min read
Full Stack Developer
Last updated on March 2, 2022

While building the push notifications feature for our iOS Chat app, we've encountered the need to send device to device push notifications in Swift with Firebase. Until a while ago, this was not even possible without running your own server, but fortunately, Google Cloud Messaging platform has evolved tremendously within the last year, and now sending app-to-app push notifications directly from Swift is totally doable. Broadcasting remote push notifications from Firebase Console UI is straightforward since it only involves a few clicks on a nice GUI. But mobile apps are more complicated than that – in many cases, you need to notify a specific user about actions that were triggered by other users. A few concrete examples where we are using device to device push notifications in our Swift app templates:

MVVM with Combine in SwiftUI – Tutorial

· 7 min read
Full Stack Developer
Last updated on October 28, 2021

mmvm intro

In this article we are going to learn how to implement the powerful MVVM design pattern in SwiftUI applications that are leveraging the Combine framework. The combination of these 3 concepts will be the standard of iOS app architecture for the years to come, so it’s really important to set up a solid groundwork when it comes to designing Swift apps going forward.

Drawer menu implementation in Swift 5

· 3 min read
Full Stack Developer
Last updated on June 19, 2019

drawer menu swift iphone slide menu source code

Many of our fully-coded iPhone app templates consist of a drawer menu navigation. This type of navigation usually is triggered by tapping on a menu button on the top left corner of the screen. Once clicked, the menu gets extended from the left side and takes over two-thirds of the screen. Here, the users can choose whatever option they want to navigate to. This type of app navigation is more popular in Android apps, but it gained some ground in the iOS realm as well, especially since concepts like Material design came out. People might also refer to this as hamburger menu navigation.

Swift tutorial: Collection view layout with flexible cell sizes

· 6 min read
Full Stack Developer
Last updated on January 29, 2018

flexible cell sizes There are many use cases where you want your app to display collections of UI elements with flexible cell sizes, that render compactly on the screen, taking up as much space as possible. Unfortunately, achieving this in Swift is not straightforward and having collection views dealing with cells of different heights and widths can be tricky. In this tutorial, you'll be able to learn how you can create the layout pictured below (which is a shot of our WordPress iPhone App Template):