Open in app

Sign In

Write

Sign In

Lee Kah Seng
Lee Kah Seng

2.2K 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


Feb 1

How to Fetch and Show Remote Data on a Widget?

When creating widgets for your apps, sometimes it might be sufficient to just display data that is locally generated. However, in most cases, we will want our widgets to display data that is fetched from a remote server. In this article, let’s explore this topic. We will create a sample…

Ios Development

5 min read

How to Fetch and Show Remote Data on a Widget?
How to Fetch and Show Remote Data on a Widget?
Ios Development

5 min read


Published in Better Programming

·Jan 18

How To Update or Refresh a Widget in iOS

Updating widgets with Timeline Provider — Due to the always-on nature of a widget, Apple has introduced a way for developers to refresh a widget to ensure its power efficiency and prevent developers from exploiting the processing power of a device. In this article, I would like to show you what it takes to refresh your…

I OS

6 min read

How To Update or Refresh a Widget in iOS
How To Update or Refresh a Widget in iOS
I OS

6 min read


Jan 3

How to Support Multiple Widgets When Using WidgetKit?

This article is originally published at swiftsenpai.com Having multiple widgets with various functionalities is quite a common feature for apps nowadays. For example, a shopping app can have a widget that shows today’s promotion and another widget that shows the user’s order status. Apple has given us 2 ways to…

I OS App Development

3 min read

How to Support Multiple Widgets When Using WidgetKit?
How to Support Multiple Widgets When Using WidgetKit?
I OS App Development

3 min read


Dec 22, 2022

How to Create an iOS Lock Screen Widget?

This article is originally published at swiftsenpai.com In iOS 16, Apple has given the Lock Screen a massive overhaul. One of the most anticipated features that come along with the overhaul is the Lock Screen widgets. As the name implies, Lock Screen widgets are widgets that display glanceable content that…

Ios Development

6 min read

How to Create an iOS Lock Screen Widget?
How to Create an iOS Lock Screen Widget?
Ios Development

6 min read


Dec 7, 2022

Getting Started With WidgetKit

All you need to know to create your first Home Screen Widget — This article is originally published at swiftsenpai.com WidgetKit was first introduced in iOS 14 as a simple framework whereby developers can leverage to create a Home Screen Widget. Since then, it has slowly evolved into a framework that powers some of the most anticipated features in iOS 16, namely Lock…

I OS App Development

7 min read

Getting Started With WidgetKit
Getting Started With WidgetKit
I OS App Development

7 min read


Published in Better Programming

·Nov 8, 2022

How to Avoid Thread Explosions With Swift Concurrency

What I discovered is quite fascinating! — A few weeks back, I read an article by Wojciech Kulik, where he talks about some of the pitfalls in the Swift Concurrency framework. …

Swift

6 min read

How to Avoid Thread Explosions With Swift Concurrency
How to Avoid Thread Explosions With Swift Concurrency
Swift

6 min read


Published in Better Programming

·Oct 26, 2022

Create Custom Cell With Placeholder UI Using UIHostingConfiguration

It is easier than you think — Prior to iOS 16, having a collection view or table view that will display placeholder cells while waiting for data to load is somewhat troublesome to implement. We will have to define 2 separate custom cells (the placeholder cell and the actual cell) and manually handle the UI logic based…

Programming

4 min read

Create Custom Cell With Placeholder UI Using UIHostingConfiguration
Create Custom Cell With Placeholder UI Using UIHostingConfiguration
Programming

4 min read


Published in Better Programming

·Oct 12, 2022

How To Find All Fully Visible Cells in Table and Collection View

Nope… indexPathsForVisibleRows is not the solution — Imagine you are given a task to find out which table view cells are currently fully visible on screen. So you fire up Xcode, access the UITableView’s indexPathsForVisibleRows and expect that to get the job done. Very soon, you will notice that something is not right. The result you get…

Programming

2 min read

How To Find All Fully Visible Cells in Table and Collection View
How To Find All Fully Visible Cells in Table and Collection View
Programming

2 min read

Lee Kah Seng

Lee Kah Seng

2.2K 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

  • Kayla Hicks

    Kayla Hicks

  • Riccardo Cipolleschi

    Riccardo Cipolleschi

  • Benek Lisefski

    Benek Lisefski

  • Simon Ng

    Simon Ng

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech