RSSAmplifier

Blog

SwiftyLion - Blog on iOS and macOS Development

An iOS Swift blog with tutorials and guides to build better mobile and mac apps. Here I share tips and tricks I learned in my experience with iOS development.

swiftylion.comRSS feed ↗40 posts

Latest posts

print() vs dump() in Swift: What’s the Difference?

Discover the key differences between Swift's `print()` and `dump()` functions. Understand their impact on your development.

Implementing Firebase AI Logic in Your iOS App with Swift

Learn how to integrate Firebase AI Logic into your iOS app with Swift to build dynamic, Gemini AI-powered features.

Unknown Xcode Shortcut

This unknown Xcode shortcut will allow you to close all the tabs, keeping the selected one open.

Read and Write Data in a Sandboxed App (Part 1)

Discover how to get read and write permission to user's Mac folders and files in an app with Sandbox enabled.

Force Dark Mode to View in SwiftUI

In this article we are going to learn how to apply a specific colour scheme to a View regardless of the system dark mode.

Error “No such file or directory“ for 3rd Party Libraries

See how to fix the “No Such File or Directory“ error in Xcode. It can be frustrating to debug since it can have multiple causes.

Fix “Build input file cannot be found“ Error in Xcode

See how to fix the “Build input file cannot be found“ error in Xcode. It can be caused by different reasons.

Format Functions to Multiple Lines in Xcode 15

Make you code easier to read formatting your functions to multiple lines with the option 'Format to Multiple Lines' in Xcode 15.

Fix “Some files could not be transferred (code 23)“ Error in Xcode

Discover how to fix the 'Some files could not be transferred (code 23)' error connected to Cocoapods.

Fix “Cycle Inside“ Error in Xcode

See how to fix the “Cycle Inside“ error in Xcode. This error happens because there is an issue with the order of scripts.

How to Correctly use .secondary Hierarchy in SwiftUI

Discover how to apply hierarchical styling to text, buttons, shapes, images and labels. Improve your UI and UX with this styling.

Background Blur with Materials in SwiftUI

Discover how to create a background blur effect and give more importance to your text in SwiftUI using the new materials.

Add Custom View to SafeArea in SwiftUI

Discover how to inset a List content using a dedicated ViewModifier in SwiftUI. How to add a button at the bottom of a List.

Combine CoreData and SwiftUI

See how to use CoreData database with SwiftUI. Syncing changes from CoreData to every View of your app.

SwiftData the Successor of CoreData Explained with SwiftUI

Discover the SwiftData framework built on top of CoreData. Save and fetch data locally. Available for Xcode 15, Swift and SwiftUI.

From REST API to CoreData in One Step

See how to convert fetched data from a REST API to entities and persist them to CoreData, the built-in local database of Apple.

Abstract Factory Pattern in Swift

Learn how the abstract factory pattern allows you to improve you codebase making it more readable and maintainable.

Understanding Dependency Injection in Swift

Learn the basics of dependency injection with Swift and Xcode. It will allows you to inject dependencies making classes flexible.

Error “Missing file libarclite“ (Xcode 14.3)

See how to fix the “Missing file libarclite“ error in Xcode. This is due to libraries with minimum deployment target of iOS 11.

How to Create Swift Macros with Xcode 15

Discover the new Swift Macro, speed up your workflow and make your code easier to read. Available for Swift 5.9 and Xcode 15.

Make your Chart Scrollable with SwiftUI Charts (iOS 17)

Discover the new SwiftUI Charts APIs that enables you to create scrollable chart easily. Available for Xcode 15 and iOS 17.

Error “Missing package product“ for Swift Packages (SPM)

See how to fix the “Missing package product“ error in Xcode caused by some Swift Packages added through SPM.

Tutorial: How to Create a Timed Paging Carousel Like Instagram

Learn how to create a page controller that automatically changes page with the new UIPageControlTimerProgress component.

Create Menus with Palette Picker in SwiftUI and UIKit

Use the new palette picker and menu style to display options as rows of compact elements in UIMenu and Menu View in iOS 17.

Make Code Easier to Write and Read in Swift 5.9

Improve your code with inline if-else and switch statements available in Swift 5.9. Make your codebase less tedious to write.

Autocompletion for Images and Colours in Xcode 15

Automatically generate colors and images resources from .xcassets and avoid typos in your code with autocompletion in Xcode 15.

All the New Features in Xcode 15

Discover what's new in Xcode 15 that will help speed up your workflow and it will make you developer life easier.

Everything Apple Announced at WWDC 23

Discover all the new operating systems, Macs and Vision Pro with visionOS presented in the WWDC 23 by Apple.

How to Let User Paste Data Into your App in SwiftUI

Discover the handy PasteButton available in iOS 16 and SwiftUI, that will allow users to easily paste content in your app.

ContentUnavailableView Handle Empty States in SwiftUI

Handle empty states with the new SwiftUI ContentUnavailableView. Available for iOS 17, macOS 14, tvOS 17 and watchOS 10.

Persistence Controller Example

Check out this sample of the Persistence Controller with CloudKit generated by Xcode while creating a new project.

FLCharts: Create Bar Chart easily

Create beautiful and highly customisable bar, line, radar charts and many more with FLCharts, a flexible, easy-to-use library.

How To Use Markdown in SwiftUI

Discover different ways to use Markdown with the Text element in SwiftUI to easily add markdown text to your app.

Units and Measurement Conversion in Swift (Part 1)

Learn how to use the measurements APIs to create custom units and convert units of measure easily and effortlessly with Swift.

Create Custom Units and Dimensions in Swift (Part 2)

Learn how to use the measurements APIs to create custom units and convert units of measure easily and effortlessly with Swift.

Apple Watch Water Lock

See how to use the enableWaterLock() API of WatchKit to disable the Apple Watch touch screen to prevent accidental taps.

CloudKit With CoreData Not Working in Production

Discover why sometimes the sync between CoreData and CloudKit do not work in production but it does while developing.

Gurman Reveals What Will Be Presented During WWDC 2023

Discover what will be presented during WWDC 23 by Apple according to Mark Gurman. iOS and iPadOS 17, watchOS 10, xrOS and headset.

Persist Access to User Folders Across Launches (Part 2)

Discover how to persist user's Mac folders and files permissions across app launches in an app with Sandbox enabled in Xcode.

How To Take an Xcode Simulator Screenshot without Shadows

See how to take a ready to use screenshot of the Xcode Simulator embedded in the device bezel without any shadow or toolbar.