A passionate  iOS developer. Write to record my learning and share the knowledge.

Packet sniffing tutorial for beginners: how to capture the packets sent and received by iOS Apps on your Mac

Photo by Kevin Ku on Unsplash

I’m recently doing an IoT project. Sometimes I have to investigate more complex problems that potentially happen in the network layer, so I use Wireshark to capture the network traffic between my iOS apps and IoT hardware.

Let’s see how to start packet sniffing using Wireshark!

Install Wireshark

Wireshark is free and…

Write clean code with @propertywrapper in Swift

person working at a keyboard
Photo by Christin Hume on Unsplash

“A property wrapper adds a layer of separation between code that manages how a property is stored and the code that defines a property.” — Swift documentation

It encapsulates extra logic to properties and limits access to the available property values.

@propertyWrapper was introduced to Swift in Swift 5.1. Now…

The 3 most commonly used skills of working with dates you must learn

Photo by Markus Spiske on Unsplash

Do you feel hard to get your head around Date(), DateFormatter(), DateComponents(), and other date-related types, but you just want your code to work as expected? This article will save you the trouble!

In this article, I will be focusing on the 3 most commonly used skills of manipulating dates:

iOS-Charts is a very flexible, easy-to-use third-party library, allowing you to highly customise your chart.

Photo by Lukas Blazek on Unsplash

I recently use iOS-Charts at work. It’s a very flexible, easy-to-use third-party library, allowing you to highly customise your chart.

This library is around 95% similar to its Android counterpart, making developing apps for both platforms much easier.

Here I use some high-income countries' birth rate data to demonstrate how…

Penny Ng

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store