Sign in

WWDC21 Scholar. I like to read manga and write about Swift. Check out my app, Find — look for text in real life, with outrageous speed.

Markdown, colors, and formatting — it’s never been easier

Image Credit: author

Attributed Strings have always been hard to work with. The most basic implementation, in UIKit, would be something like this:

This is bad enough, but it’s even worse for SwiftUI. The current accepted answer on Stack Overflow uses UIViewRepresentable and some other unnecessarily complex code. …

With Swift, Markdown, and GitHub Pages

Apps displaying help center
Image credit: Author

Most big apps have some sort of help center, also known as a “knowledge base.” You know, the “What can we help you with?” screens.

Search up “knowledge base software,” and you’ll find countless services that offer this functionality… but have you looked at their pricing?

It’s supposed to be a “feature”

Info.plist missing from the project navigator
Image by the author.

If you’ve created a new SwiftUI app using Xcode 13, you’ll notice that Info.plist is gone. It’s not a bug. According to the Xcode 13 release notes:

“Projects created from several templates no longer require configuration files such as entitlements and Info.plist files. …

43 lines of code is all it takes

decorative: abstract pattern of colored lights
Photo by Anton Maksimov juvnsky on Unsplash

Markdown is probably the easiest way to edit and format rich text. It’s also extremely popular, and pretty much everyone knows how to use it.

So, want to implement Markdown in your app? It used to be… complicated. You’d need to use a third-party Markdown parser, then display the result…

Make your designs look great on any device

Ever since Apple released the iPhone X, using the safe area has been a must-do for developers. You don’t want your work hidden under the notch or clipped beneath the status bar or under the rounded corners, etc.

The launch of the iPhone X along with the safe area came…

Music makes everything better

Photo by the author.

In 2016, Apple released an iPad version of Swift Playgrounds. Paired with an external keyboard, it’s almost as good as Xcode and a lot faster, but it’s slightly oversimplified. Sure, you can write code, but what about adding files or playing audio?

When I was coding my playground for this…

Andrew Zheng

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