Tappable Areas in a SwiftUI List Row

I have a problem with the tappable area in a SwiftUI list row: it doesn’t cover the entire row. Here is my code: Section(header: Text("Latest Transit News").bold(), content: { HStack(alignment: .center) { Image("Twitter") .resizable() .renderingMode(.template) .frame(width: 18.33, height: 15.14) .foregroundColor(Color("TwitterBlue")) VStack(alignment: .leading) { Text("SBS Transit") Text("@SBSTransit_Ltd").font(.caption).foregroundColor(.secondary) } Spacer() }.onTapGesture { UIApplication .shared .open(SupportURL.sbs.url, options: [UIApplication.OpenExternalURLOptionsKey.universalLinksOnly : false], completionHandler: nil) } This produces the expected row: The only tappable area in the entire row is enclosed in the red box: the Image and Text....

May 30, 2020 · 1 min

WWDC 2020 Wishlist

This WWDC wishlist is focused around the frameworks and functionality that I’ve been working with over the last year or so. It is by no means comprehensive. I’ve also not included anything that I know to be around the corner, e.g. resources in Swift Package Manager. Frameworks BackgroundTasks : The current implementation of BGAppRefreshTask gives developers the ability to schedule a task to start no earlier than than a specified time, e....

May 22, 2020 · 2 min

Improving My Coding Skills

This is the first code post on the new blog! I’ve been developing apps for iOS since 2009. I have no formal education in software development, but over the last decade I’ve accumulated experience writing apps in Objective-C, Swift, one Windows app in C#, and, recently, building Singapore Transit’s server in JavaScript (which wasn’t pleasant). Through the small amount of work I’ve contributed to NetNewsWire and following Brent Simmons weblog[1], I’ve been introduced to LeetCode—which is apparently “the best platform to help you enhance your skills, expand your knowledge and prepare for technical interviews”....

May 8, 2020 · 2 min