Gagan Joshi·Nov 5When AI Becomes the Historian, Who Decides What We Remember?The risk isn’t that AI lies to us. It’s that one day we stop checking.A response icon1A response icon1
Gagan Joshi·Jul 25Can You Write a Custom View Modifier?A custom view modifier is how you turn a repeated SwiftUI style into a named, reusable API — and that’s exactly what this interview…
Gagan Joshi·Jul 25Build Your Own map, filter, and reduce in SwiftIf you can rewrite map, filter, and reduce, you don’t just use higher-order functions — you understand them.
Gagan Joshi·Jul 24How Do You Test a Private Function in Swift? (A Common Interview Question)This one shows up a lot in iOS interviews:
Gagan Joshi·Jul 24Your Property Wrapper Isn’t Magic — It’s a Tiny Gatekeeper With Two DoorsMost Swift posts introduce property wrappers like this: “They’re syntactic sugar for getters and setters.” True. Also boring.
Gagan Joshi·Aug 12, 2025Boyer–Moore Majority Vote Algorithm in SwiftToday I’m sharing one of my favorite algorithms — the Boyer–Moore Majority Vote — written in Swift with detailed comments.