Khoa πŸ”₯ Profile picture
AppStore App of the Day @PastePalApp πŸ† Also made @GetAlmighty @wwdctogether @ChatJoyAI @CodelimeHQ @ShipmunkApp @IndieGoodies
Learning in Public - Coding - DataSci Profile picture 1 subscribed
Jul 27, 2022 β€’ 8 tweets β€’ 3 min read
SwiftUI helps make apps faster, and I've started to use it in all my production apps

Here are some #SwiftUI tips I've learned along the way that will help you write better SwiftUI apps ✨✨ ✨ There is a strokeBorder method

Some shape like Circle conforms to InsettableShape protocol, which provides strokeBorder method.

The stroke method strokes inside and outside the border.
The strokeBorder insets the stroke by lineWidth / 2 Image
Jun 20, 2022 β€’ 11 tweets β€’ 4 min read
✨✨ SwiftUI tips

Y probably using SwiftUI in iOS 15 by now, here are 10 good practices to make good use of #SwiftUI #iosdev ✨ Take advantage of flexible frames

Sometimes we want to show a button in the corner of the screen and we use VStack, HStack with Spacer.

We can use flexible frame with maxWidth, maxHeight. It is more concise and does not have default spacing like in the stack.
Apr 16, 2022 β€’ 5 tweets β€’ 6 min read
Are you new to iOS and Swift and want to find good blogs to learn & get up to date?

I can recommend the following 21 best free resources and blogs to learn Swift and SwiftUI for iOS developers #iosdev πŸ‘©β€πŸ’»πŸ§‘β€πŸ’» ⚑️ Stanford University's course CS193p (Developing Applications for iOS using SwiftUI)
cs193p.sites.stanford.edu

⚑️ Raywenderlich
raywenderlich.com

⚑️ ObjC Issues
objc.io/issues/

⚑️ NSHipster
nshipster.com

⚑️ 100 days of Swift
hackingwithswift.com/100
Apr 11, 2022 β€’ 7 tweets β€’ 3 min read
What are some new things you learn about #SwiftUI lately?

Over the course of making several SwiftUI apps, I've discovered quite a few hidden magic of SwiftUI that are quite fun.

Here are 6 interesting SwiftUI features in View Builder many don't know are even possible 🀯 🀯 View protocol with enum

Struct is not the only way to describe #SwiftUI views. Learn how you can achieve the same thing with just enum
Apr 5, 2022 β€’ 10 tweets β€’ 4 min read
Have you recently discovered some nifty UIKit APIs that you wish you had known earlier?

Apple introduces new changes every WWDC but it may take a while until they can be adopted in production, hence developers forgot.

Here are 9 useful APIs from iOS 7 - 15 many fail to notice keyboardDismissMode, iOS 7

Have you tried making the keyboard dismissal follow along drag gesture? It's not an easy feast but I still see manual implementation in some codebases.

They didn't know that in iOS 7, you can specify keyboardDismissMode to be .interactive. Image
Mar 17, 2022 β€’ 10 tweets β€’ 8 min read
Development & design tools for iOS developers #iosdev ⚑️πŸ”₯

These are the 33 tools I use daily and have saved me so much time that I can't recommend them enough. πŸ”₯ WTF Auto Layout
Demystify Auto Layout constraint error logs
wtfautolayout.com

πŸ”₯ NSDateFormatter
Preview different date formats
nsdateformatter.com

πŸ”₯ Quick Type
Convert JSON to Swift code
app.quicktype.io

πŸ”₯ Screen Sizes
Device info
screensizes.app
Mar 16, 2022 β€’ 6 tweets β€’ 2 min read
Swift is a very typesafe and expressive language.

With newer features mean we can find new ways to write even more concise Swift code.

Below are 5 sweet techniques that you can use to supercharge your codebase #iosdev πŸ’ͺ🀩 πŸ’ͺ allSatisfy

Instead of using filter and count, you can use allSatisfy to check whether all element satisfies a given condition Image
Mar 14, 2022 β€’ 8 tweets β€’ 4 min read
Always want to invest more in your iOS knowledge but don't know where to start?

Here are 7 of the best iOS and SwiftUI courses to subscribe to πŸ‘©β€πŸ«πŸ§‘β€πŸ«

(Disclaimer: I'm not affiliated to any, these are merely based on what I've tried and found useful) 🌼 Hacking With Swift+
by @twostraw

Subscription service that offers exclusive tips and techniques, as well as whole app creation. Some free content are intriguing enough not to miss.

hackingwithswift.com/plus
Mar 3, 2022 β€’ 9 tweets β€’ 4 min read
I just want to share a list of 8 iOS information websites that have kept me updated during my development career.

I didn't know I need these, but then I bookmarked for use every day ⚑️ ⚑️ iOS and iPadOS usage

Official iOS and iPad OS usage statistics by @AppStore measured by devices that transacted recently.

A friendly reminder that 98% of all iOS devices introduced in the last 4 years install iOS 14 and iOS 15 πŸ’ͺ

developer.apple.com/support/app-st…
Mar 2, 2022 β€’ 5 tweets β€’ 3 min read
How do you keep up with iOS development when things are moving quite fast?

To me, it's about reading newsletters 😎

Here are 4 newsletters that I've found insightful over the years ⚑️ πŸ“¬ @iOSDevWeekly

Do you know when the first issue came out? August 5th 2011!

For over 10 years, @daveverwer has accompanied iOS community and delivered great summaries.

To me, iOSDevWeekly is where all the best and popular resources are mentioned

iosdevweekly.com
Nov 6, 2021 β€’ 6 tweets β€’ 3 min read
Nov 3, 2021 β€’ 15 tweets β€’ 8 min read
Do you plan to get started in Mac development, especially with SwiftUI?

I'm by no mean Mac expert, but I've made quite a few Mac apps and I've bookmarked some useful resources and tools along the way.

Since many have asked me for recommendation, here is the list πŸ§΅πŸ‘‡ πŸ–₯ First of all, how is macOS different from other platforms like iOS, tvOS and watchOS?

Each device has different capabilities and is meant for different purposes.

The Mac is:
- Flexible
- Focused
- Expensive
- Capable
Nov 2, 2021 β€’ 10 tweets β€’ 6 min read
Hi iOS and macOS developers, where are you currently hanging out?

Here are the active communities on @SlackHQ I've joined and founded useful πŸ§΅πŸ‘‡ 🌍 iOS Developers

The most active community for iOS and Swift developers I've found, with over 30,000 members. You can find many familiar faces here eg. @donnywals @aaron_pearce

ios-developers.io
Nov 1, 2021 β€’ 22 tweets β€’ 11 min read
Have you started leveraging the power of ML in your apps?

While browsing through GitHub for inspirations, I've bookmarked these awesome 20+ open-source machine learning projects

Bring magic to your apps 🧡 ⚑️ TensorFlow

The latest version of TensorFlow supports Keras, which is a high-level neural networks API, written in Python and capable of running on top of TensorFlow, CNTK, or Theano.

There are also interfaces for Javascript and Swift.

tensorflow.org
Oct 29, 2021 β€’ 11 tweets β€’ 4 min read
What are some top programming books you can really recommend?

In the earliest days of my dev career, I was lucky to be shown these programming books and they have helped me a long way.

Sharing here with hope you can skyrocket your dev career 🧡 πŸ“š Code Complete: A Practical Handbook of Software Construction

Written by Steve McConnell in 1993, this book is considered one of the best practical guides to programming. Learn about optimal coding styles, integration, testing, and craftmanship.

amazon.com/Code-Complete-…
Aug 2, 2021 β€’ 10 tweets β€’ 4 min read
Recently I've started reviewing system design and algorithms. While this is not for interview purposes, I find that this knowledge helps in both daily job and indie projects.

Below are a few resources that I've learned and I highly recommend. Thread πŸ‘‡ 1) System Design

System design is about defining architecture and modules interface to satisfy requirements. Whether you're working in a team or solo, clarifying requirements on what you want to do and what is exactly the problem, is most important.
Jul 2, 2021 β€’ 6 tweets β€’ 2 min read
SwiftUI ViewBuilder is resultBuilder, and from Swift 5.3 you can declare if let, if case, multiple if statements, switch, ... pretty much like a normal block function.

ViewBuilder is recommended to leverage SwiftUI type system to ensure performance. Here are a few examples πŸ‘‡ Local variables.

Pretty much like a normal function, you can declare local variables and return View at last.
May 6, 2021 β€’ 9 tweets β€’ 6 min read
What are some essential online tools that help you in your day-to-day development tasks?

Here are the tools I can't live without

Thread πŸ‘‡ ⌨️ Quick Type by @quicktypeio

Convert JSON into gorgeous, typesafe code in any language. I use this a lot to quickly generate Swift models from server JSON response. It generates very elegant enum handling and optiona

quicktype.io
May 3, 2021 β€’ 6 tweets β€’ 2 min read
"Software developers are the most likely to get divorced"

This is something my professor said during a lecture at university, and it's a lesson I always remember

It's not just about developers, but for anyone who values work above all things, who only care about themselves We tend to focus mostly on computer programs that are either 0 or 1. Life has more shades than that.

How many millionaires and billionaires have you seen that have a failed marriage, or neglected home life?
Apr 29, 2021 β€’ 26 tweets β€’ 15 min read
How to make your apps stand out on the @AppStore?

Besides coming up with a good idea and building the app, there are many other things you can do to boost your apps' visibility #iosdev

Thread πŸ‘‡ πŸ§‘β€πŸŽ¨ Apple Human Interface Guidelines

HIG provides in-depth information and resources to design great apps. Not only you learn the fundamental of colors and fonts, you also learn how elements are used in Apple own apps as best practices

developer.apple.com/design/human-i…
Feb 10, 2021 β€’ 18 tweets β€’ 13 min read
I've done some #SwiftUI lately for @pushheroapp @PastePalApp , and amazed by how easy and fun it is to make apps. If you want to get into SwiftUI but don't know where to start, here are my recommended resources #iosdev

Thread πŸ‘‡ 1) First thing first is @Apple official guides. Apple has done a stunning job to make SwiftUI tutorials fun and interactive

- Introducing SwiftUI developer.apple.com/tutorials/swif…
- Develop Apps with SwiftUI developer.apple.com/tutorials/app-…
- Creating a macOS App developer.apple.com/tutorials/swif…