DispatchGroup, Combine, and UrlSession

I ran into a bug a couple weeks ago at work that was quite interesting. We’re using a DispatchGroup and DispatchGroup.notify to stop our pull to refresh animation once all the microservices come back with results. Our QA team caught an issue where if you to a pull to refresh and then background the app it crashes. Of course you can’t simulate the error, it has to be on a physical device. [Read More]

TextFieldStyle and SwiftLint I ran into a problem today where SwiftLint was mad at TextFieldStyle because it has you implement the public func _body function which doesn’t start with a lower case letter like the identifier_name rule wants. The fix was to put this comment right above the function signature: // swiftlint:disable:next identifier_name func _body(configuration: TextField<Self._Label>) -> some View { And here’s the raw error that the compiler was throwing: [Read More]