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

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

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

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

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

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.

MVVM with Combine in SwiftUI – Tutorial

· 7 min read
Full Stack Developer

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

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

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):

Share content to Facebook and Twitter in Swift 5 – SLComposeViewController

· 3 min read
Full Stack Developer

intro picture

We're currently working on an iOS template that lets you create an iPhone app for your WordPress blog in a matter of minutes. While implementing this, we had to come up with a mechanism that allows users to share content to Facebook and Twitter. This is an important functionality for a blogger since everyone wants their content to be easily spread around the Internet. That's when we discovered SLComposeViewController.

How to implement an RSS Feed Parser in Swift

· 5 min read
Full Stack Developer

While working on a brand new iOS app template for WordPress sites, we encountered the problem of writing an RSS Feed Parser in Swift. It turns out there's a straightforward approach to parsing a WordPress RSS Feed in Swift 3, so we thought to share this on our blog, hoping this will come in handy for a Swift developer working on a similar feature.