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?
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 back in 2017, so I think it’s safe to say every iOS developer knows how to use it — if not, here’s the documentation.
But sometimes you need to dive deeper. You might want the safe area present in some views but not in others — maybe a blur partially under the status bar, tall enough to contain a button. …
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 year’s Swift Student Challenge, I started out using my iPad. It was extremely fast. Pressing “Run My Code” would yield the result in less than a second! But I hit some snags — the most significant one being there was no way to play audio! …
I launched my first app in April, which is three months ago. It’s still my only app. Well, I made other apps, but that was the only one I launched.
Right after the launch, there were problems. Bugs. I fixed them in a following release, 1.0.1. That release got “metadata rejected,” which for me meant my promo video violated the guidelines. I re-rendered my video and released another version quickly, 1.0.2. That was approved.
And now, after almost three months of inactivity, version 1.1.0 is here. I translated my app into Chinese. I made new screenshots and refreshed the video.
SwiftUI is a very new and rapidly evolving framework — which is great, but that also means it lacks lots of nice features, including touch events.
So what’s a touch event? If you’re coming from UIKit, you’re probably familiar with them. Really, they’re just a fancy way of saying “Press detected!”
However, because iPhones and iPads are advanced, multitouch-capable devices, sometimes “Press detected!” isn’t enough. You might want to detect when the user first touches down or maybe when they release … or maybe when they drag and release.
Back in the UIKit storyboard, these touch events were easy to handle.
UIButtons came with a huge list of touch events, including
Touch Up Inside,
Touch Up Outside … there were a lot more, and all together they could receive every action your finger could perform. …
Before SF Symbols, making icons for iOS apps used to present a major hassle for both the designer and the developer. A workflow would often look along the lines of this:
SwiftUI is a great way to build apps. It’s simple, concise, and fast. What’s made in UIKit can be recreated in SwiftUI with half the lines of code. What used to take weeks now only takes hours. But until today, it um… still depended on UIKit.
To display a view made with SwiftUI, you had to wrap it in a
UIHostingController, which had to be wrapped in a
UIWindow, which had to be defined in
For a framework designed for simplicity and performance… all that code doesn’t make sense. …
Hey! Just to clarify, this article is about the
@State property (unique to SwiftUI) and not the general concept of state. They’re related, but state itself is just an idea while the
@State property is an actual, visible, and tangible object. It’s also very versatile, almost like magic …
If you’ve been working with SwiftUI, chances are that you once made a property and tried to change its value, only to get this weird error: “Cannot assign to property: ‘self’ is immutable.”
I would like to applaud Safari’s developers on how they managed to provide not 1, not 2, nor 3 or 4 but 5 different ways of opening links in a new tab! That’s 100% idiot-proof!
However, most of them only work on Safari for iPadOS because they require both gestures and Drag & Drop support—macOS doesn’t support complex gestures, and iOS doesn’t have D&D. Still, 5 ways is very impressive in my opinion!
This is probably the most common way of opening links in a new tab. Simply press and hold on the link, then a preview and some options will pop up — including “Open in Background.” …