A Guide to UI Testing in Swift
User Interface (UI) testing is a crucial aspect of app development, ensuring that your app's interface behaves as expected under various conditions.
This guide will
Why You Should Avoid Using `AnyView` in SwiftUI
SwiftUI, Apple's declarative framework for building user interfaces, introduces a variety of new concepts and tools for developers.
One such tool is `AnyV
iOS Settings URL's
This is a list of internal URLs for settings on your iPhone, iPad, ...
Please note that this list will be updated if required, if you see something which is not right, please drop
What is @frozen
Enums
Difference between map, flatMap, compactMap
CoreSpotlight
@ViewBuilder in Swift
@Environment variables
SwiftUI provides a way to pass data down the view hierarchy using @Environment
variables. These variables are environment-dependent and can be accessed from any child view. Th
Loging using OSLog
Handle hyperlinks in SwiftUI
Generics in Swift
Swift, offers a powerful feature called generics that greatly enhances code reusability, efficiency, and safety. In this blog post, we will dive deep into generics and explore how the
Variadic Parameters
What are Variadic Parameters
?
In Swift, variadic parameters enable a fu
If case let
Appril Festival 2024
self, Self, and Self.self in Swift
What is `self
ExpressibleByStringLiteral URL
The ExpressibleByStringLiteral
protocol is a powerful feature in Swift that allows us to create custom types directly from string literals. Essentially, i
LabeledContent in SwiftUI
How to monitor network in SwiftUI
Subscripts in Swift
SwiftUI ViewModifiers
SwiftUI ViewModifiers are a powerful tool for customizing and enhancing views in your app. They allow you to encapsulate common view modifications into reusable, composable uni
Default values for UserDefaults
UserDefaults (NSUserDefaults
) is a go-to database for saving users' preferences over application behavior.
What is UserDefaults
?
UserDefaults
is a simple key-
Implementing Sign in with Apple
TipKit
Let's delve into the fascinating world of TipKit, a powerful framework that empowers developers to create and customize app tips.
Whether you're aiming to introduce new features, reveal hidden f
Pull-to-Refresh in SwiftUI
ContentUnavailableView
What is @MainActor
Dive into GIT
Let's dive into the world of GIT. Whether you're a seasoned developer or just starting out, understanding these commands is crucial for efficient version control and collaboration. Below, I'll intro
Localizing In Xcode
Localizing and Varying Text with a String Catalog
Your app's success hinges on delivering an exceptional experience to users across different locales. Localization is
Translating closures to async
What is continuation
?
In Swift, a continuation is a construct that allows you to suspend and resu
Aurora Editor
Aurora Editor: A Swift-Powered IDE for Efficient Coding
Introduction
As developers, we're always on the lookout for tools that enhance our productivity, streamline our workf
SimpleNetworking
Today i write about my Swift package .
It's a simple networking library for Swift it is a wrapper around URLS
@dynamicMemberLookup
async/await
Let's delve into the fascinating world of Swift's async/await
.
This powerful feature, introduced in Swift 5.5, revolutionizes asynchronous programming, making it more intuitive and r
iCloud Drive Tips & Tricks
What Is iCloud Drive?
iCloud Drive is Apple's cloud-based file storage and synchronization service. It allows you to store, organize, and collaborate on files and folders across
SwiftUI property wrappers
Let's dive into the fascinating world of SwiftUI property wrappers.
These powerful constructs allow you to manage data, state, and environment information in your Sw
Xcode shortcuts
Mastering Xcode: Boost Your Productivity with Essential Shortcuts
As developers, we're always on the quest for efficiency. Whether you're a seasoned Xcode user or just starting out
Implementing Admob in SwiftUI
Recently i was working on a that required me to implement Admob in a SwiftUI app.
I encountered some issues while implementing Admob
OTP Code Generation with CryptoKit: A Swift Approach
Introduction
In the realm of secure authentication, One-Time Passwords (OTPs) play a crucial role. Whether it's two-factor authenticat
Snippet: @EnvironmentVariable
If you are creating commandline apps you sometimes need to acces the operating system environment variables, while you can use getenv(name)
it ca
New Website
New Website!
Welcome to the new website! We hope you like it.
We've been working hard to make it as easy to use as possible.
If you have any feedback, please let me know.
New Features
- New d
Observable Geocoder
Firstly we want to import CoreLocation
for the location services.
We're going to construct a basic class, which subclasses ObservableObject
.
class Geocoder: ObservableOb
Easy Publishers
Ever wondered how to create a simple publisher?
In this blog i'll try to show you the basics
Firstly we need to import the required frameworks
// Used for the ObservableObject
Swipe actions in Swift
The issue:
Gestures, delegates, it can be a big struggle (especially for beginners).
If you use a lot of gestures then you’ll need to implement it over and over.
One of the problems is,
Safari in SwiftUI
You started playing around with SwiftUI, and you want to present a Safari(WebView), you search in the documentation, and..., SwiftUI has no native way to display a WebView!
To use Safari (SFSaf