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. …

Swift

6 min read

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

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


Mar 28

How to Hide Sensitive Widget Data When Device Is Locked?

Protect your users’ privacy with these simple approaches! — This article is originally published at swiftsenpai.com With the introduction of widgets in iOS, users can now easily access information from their favorite apps right at the lock screen and Today View. As good as it might seem, this does introduce privacy issues whereby sensitive data can become accessible even…

IOS Development

4 min read

How to Hide Sensitive Widget Data When Device Is Locked?
How to Hide Sensitive Widget Data When Device Is Locked?
IOS Development

4 min read


Mar 14

How to Handle Tap Gestures on Widgets?

This article is originally published at swiftsenpai.com If you’ve interacted with widgets before, you may have noticed that they all have a default behavior when tapped, which is to launch the host app. However, it’s important to know that this behavior can actually be customized based on the widget configuration. …

IOS Development

6 min read

How to Handle Tap Gestures on Widgets?
How to Handle Tap Gestures on Widgets?
IOS Development

6 min read


Feb 28

How to Create Configurable Widgets With Dynamic Options?

This article is originally published at swiftsenpai.com In my last article, I have shown you how to create a widget with static options. This might be good for some cases, but in most cases, we might not be able to determine the widget’s options during development time. …

IOS Development

6 min read

How to Create Configurable Widgets With Dynamic Options?
How to Create Configurable Widgets With Dynamic Options?
IOS Development

6 min read


Feb 14

How to Create Configurable Widgets With Static Options?

This article is originally published at swiftsenpai.com The main idea of widgets is all about giving users quick and easy access to the information that is most relevant to them. …

Swift

7 min read

How to Create Configurable Widgets With Static Options?
How to Create Configurable Widgets With Static Options?
Swift

7 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
  • Tom Kuegler

    Tom Kuegler

  • Mark Lucking

    Mark Lucking

  • Kayla Hicks

    Kayla Hicks

  • Simon Ng

    Simon Ng

  • Riccardo Cipolleschi

    Riccardo Cipolleschi

See all (15)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech