ylliX - Online Advertising Network

How to display date and time in SwiftUI

Displaying dates or times is a very common requirement for many apps, often using a specific date formatter. Let’s see what SwiftUI brings to the table to make it easier for developers. Coming from UIKit, if I want to display a date, my code would look like something like this. import Foundation import UIKit let […]

Create a dynamic onboarding UI in Swift

When creating new features, it’s really important to think about how our users will use it. Most of the time, the UI is straightforward enough. However, sometimes, you will want to give some guidance, to highlight a button or a switch, with a message attached. Today, we’ll create a reusable and adaptable overlay in Swift […]

Playing Video with AVPlayer in SwiftUI

I’ve been experiencing more and more with SwiftUI and I really wanted to see what we can do with video content. Today I’ll share my findings, showing how to play video using AVFoundation in SwiftUI, including some mistakes to avoid. The best way to play a media on iOS is using AVFoundation, Apple’s framework to […]

Create a watchOS app in SwiftUI

Designing a watchOS app in Swift always felt to be quite tricky. I could spend hours tweaking redoing layout and constraints. With SwiftUI supporting watchOS, I wanted to have a new try at it, releasing a standalone app for Apple Watch. As a regular runner and wearing, and always wearing a watch during exercising, I […]