Distinguishing Between Multiple UIActionSheets with Swift
How to distinguish between multiple UIActionSheets in a single Swift view controller using tags and enums.
Andrew Bancroft — Experienced iOS developer, educator, and writer with 15+ years of experience, sharing clear, practical guidance on Swift, SwiftUI, iOS development, and data persistence to help developers succeed.
204 articles from this blog
How to distinguish between multiple UIActionSheets in a single Swift view controller using tags and enums.
An overview of Swift extensions using the 5 W's: who, what, when, where, and why, aimed at iOS developers.
A tutorial on sending text messages in-app using MFMessageComposeViewController with Swift, following a clean architecture pattern.
Quick guide to setting up Unity IOC container for ASP.NET MVC dependency injection using NuGet.
A persuasive article encouraging Swift developers to write about the language, highlighting benefits like community growth and personal understanding.
Explains the Swift compiler error 'Variable used within its own initial value' when defining recursive closures, with solutions.
A Swift tutorial on creating a UIView extension for 360-degree rotate animation with CABasicAnimation.
A tutorial explaining NSNotificationCenter in Swift for iOS app internal communication, with code examples.
Explains the difference between Date and Date? (Nullable Date) in VB.Net and why ToString() overloads differ, causing a common error.
A guide to replacing Objective-C #define macros with Swift constants for cleaner code.
Tutorial on implementing slide-in animations for UIViews in Swift using class extensions and CATransition.
A Swift tutorial on checking iOS versions using NSFoundationVersionNumber for backward compatibility with iOS 7 and iOS 8.
A tutorial on adding rich HTML documentation to Swift Playgrounds for interactive learning experiences.
Learn how to replace magic strings with Swift enumerations for cleaner, type-safe code in iOS development.
A Swift tutorial on cleaning up iOS view controllers by extracting delegate responsibilities into separate classes.
Tutorial on using MFMailComposeViewController with Swift to send emails in-app, covering setup, configuration, and delegate methods.
A follow-up discussion on Swift type inference, emphasizing clear naming and predictable return types for code clarity.
Learn how to sort an array of strings as integers in Swift using the sorted function and closures.
Explores when to use explicit type annotations vs type inference in Swift for cleaner, more readable code.
A guide to writing clean functions in Swift, focusing on naming conventions and parameter clarity inspired by Clean Code principles.