Open in app

Sign in

Write

Sign in

Lee Kah Seng
Lee Kah Seng

2.3K Followers

Home

About

Published in

Better Programming

·Pinned

How to Use Web3.swift in iOS

Fetch data from the Ethereum blockchain using Swift — Ever since the introduction of the Ethereum blockchain in the year 2015, it has revolutionized the entire software development industry. It is the first blockchain that has smart contract capability, allowing developers to create and deploy decentralized applications (dApps) that interact with the Ethereum blockchain. Nowadays most dApps are web-based…

Programming

5 min read

How to Use Web3.swift in iOS
How to Use Web3.swift in iOS
Programming

5 min read


Published in

Better Programming

·Pinned

Handling Actor Reentrancy Problem in Swift

Know how to safely run concurrent Swift code — When the first time I saw the WWDC presentation about actors, I was thrilled with what it is capable of and how it will change the way we write asynchronous code in the near future. By using actors, writing asynchronous code that is free from data races and deadlocks has…

Swift

6 min read

Handling Actor Reentrancy Problem in Swift
Handling Actor Reentrancy Problem in Swift
Swift

6 min read


Sep 15

Understanding Container Background for Widget in iOS 17

This article is originally published at swiftsenpai.com. In the upcoming iOS 17 update, Apple once again expanded the use of widgets, making them available in more places, including the iPad lock screen and iPhone standby mode. However, this update brings a new concept called “container background” to the table, which…

IOS Development

4 min read

Understanding Container Background for Widget in iOS 17
Understanding Container Background for Widget in iOS 17
IOS Development

4 min read


Jul 18

How to Create Callback-like Behavior Using AsyncStream in Swift

No more relying on closures. — This article is originally published at swiftsenpai.com Without a doubt, Swift Concurrency has revolutionized the way we handle asynchronous code in Swift. One powerful component of it is AsyncStream, a specialized form of AsyncSequence that is well-suited to achieve callback- or delegate-like behavior using the async/await syntax. Prior to Swift…

Mobile App Development

4 min read

How to Create Callback-like Behavior Using AsyncStream in Swift
How to Create Callback-like Behavior Using AsyncStream in Swift
Mobile App Development

4 min read


Jun 12

How to Handle Empty States Using UIContentUnavailableConfiguration

No more excuses to neglect empty states in your apps. — This article is originally published at swiftsenpai.com In this year WWDC (WWDC23), Apple surprised developers with an unexpected improvement to UIKit. The introduction of UIContentUnavailableConfigurationaimed to simplify the process of creating empty states for view controllers. According to Apple, UIContentUnavailableConfiguration is a composable description of an empty state and can…

IOS Development

6 min read

How to Handle Empty States Using UIContentUnavailableConfiguration
How to Handle Empty States Using UIContentUnavailableConfiguration
IOS Development

6 min read


Jun 6

5 Simple Steps to Find Slow Code Using Xcode Time Profiler

It is easier than you think — This article is originally published at swiftsenpai.com Xcode Time Profiler is a powerful performance analysis tool provided by Apple. It is specifically designed to help developers optimize the performance of their iOS, macOS, watchOS, and tvOS applications. If you open the Time Profiler for the first time, you might feel…

IOS App Development

6 min read

5 Simple Steps to Find Slow Code Using Xcode Time Profiler
5 Simple Steps to Find Slow Code Using Xcode Time Profiler
IOS App Development

6 min read


May 23

Handling WebP Images When Using PHPickerViewController

Be cautious when using PHPickerViewController — This article is originally published at swiftsenpai.com This week, I worked on a feature that required integration with the PHPickerViewController. Everything went well until I noticed that some of the selected images failed to convert into UIImage in the picker(_:didFinishPicking:) delegate method. Upon investigation, I discovered that the issue arose…

IOS Development

3 min read

Handling WebP Images When Using PHPickerViewController
Handling WebP Images When Using PHPickerViewController
IOS Development

3 min read


May 9

How to Define Custom URL Actions for SwiftUI Text Views

Find out interesting ways to use the custom URL actions. — This article is originally published at swiftsenpai.com With the release of iOS 15, Apple has introduced native markdown support to the SwiftUI Text view. This feature allows developers to easily create strings with hyperlinks that can open websites, send emails, or make phone calls. While this feature may be sufficient…

IOS Development

4 min read

How to Define Custom URL Actions for SwiftUI Text Views
How to Define Custom URL Actions for SwiftUI Text Views
IOS Development

4 min read


Apr 25

How to Use UIHostingConfiguration to Integrate SwiftUI Views into UIKit Apps

UIHostingController is no longer the only choice. — This article is originally published at swiftsenpai.com Since the release of SwiftUI in 2019, Apple has been striving to enhance the interoperability between SwiftUI and UIKit. In iOS 16, Apple introduced UIHostingConfiguration, which is a powerful feature that enables developers to use SwiftUI views as UITableView or UICollectionView cells. Recently…

IOS Development

4 min read

How to Use UIHostingConfiguration to Integrate SwiftUI Views into UIKit Apps
How to Use UIHostingConfiguration to Integrate SwiftUI Views into UIKit Apps
IOS Development

4 min read


Apr 11

How to Create Custom Redacted Effects on Widgets?

It is not as straightforward as you think — This article is originally published at swiftsenpai.com In my previous article, we talked about how we can protect our users’ privacy by redacting widget data. It’s a simple process, but unfortunately, there aren’t many options available when it comes to the redacted effect. In this article, I’ll show you how…

IOS App Development

4 min read

How to Create Custom Redacted Effects on Widgets?
How to Create Custom Redacted Effects on Widgets?
IOS App Development

4 min read

Lee Kah Seng

Lee Kah Seng

2.3K Followers

Support me by becoming a Medium member: https://leekahseng.medium.com/membership ⦿ 🇲🇾 Creator of https://swiftsenpai.com ⦿ iOS developer since 2011

Following
  • Mark Lucking

    Mark Lucking

  • Simon Ng

    Simon Ng

  • Kayla Hicks

    Kayla Hicks

  • Tom Kuegler

    Tom Kuegler

  • Riccardo Cipolleschi

    Riccardo Cipolleschi

See all (15)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams