Thomas Grapperon

@tgrapperon
133 Followers
213 Following
21 Posts
Unpopular opinion: assertions are great, but should only be used for problems that cannot be detected immediately at runtime.
E.g. there’s no need to check that an Optional is non-nil before force-unwrapping it, or that an index is contained within the bounds of a Collection; the Swift runtime is _guaranteed_ to trap for these. All you’re doing is adding clutter.

I saw a fun little question on Stack Overflow about rounding the corners of a UIBezierPath, so I wrote a little package to do it.

https://stackoverflow.com/a/75242194/77567

In Xcode CoreGraphics how to round corners of a UIPath. In Android I can simply add a cornerpatheffect

I am creating a drawing app in which I am using a custom intractable view, I am drawing an open path, I want its corners to be rounded. In android I can add cornerPathEffect but I am not able to do...

Stack Overflow
Version 1.0.0 of the Swift extension for Visual Studio Code is out. It adds support for editing, building and testing your Swift packages in VS Code. #SwiftLang https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Swift - Visual Studio Marketplace

Extension for Visual Studio Code - Swift Language Support for Visual Studio Code.

Once you control your dependencies, you can do things that were impossible before, like making your model think it's observing the battery level from a SwiftUI Preview, and update the view using its "live" codepaths.
This model is 15 lines of testable code.
All of this thanks to
@pointfreeco's new "Dependencies" library, and to the companion extension that I released yesterday!
https://github.com/tgrapperon/swift-dependencies-additions
#swift #swiftui #tca
GitHub - tgrapperon/swift-dependencies-additions: More dependencies for `swift-dependencies`

More dependencies for `swift-dependencies` . Contribute to tgrapperon/swift-dependencies-additions development by creating an account on GitHub.

GitHub

It's time to dive into the messy world of side effects! We will start implementing the “record meeting” screen, starting with the timer, which has surprisingly nuanced logic.

Learn more: https://www.pointfree.co/episodes/ep217-modern-swiftui-effects-part-1

Episode #217: Modern SwiftUI: Effects, Part 1

After a brief digression to explore the performance and ergonomics of identified collections, we dive into the messy world of side effects by implementing the "record meeting" screen. We'll start with the timer, which has surprisingly nuanced logic.

I've read many requests to add Mastodon links to GitHub profiles for verification and discovery purposes.

My team is working on allowing you to add a number of social profile links, but given upcoming holiday vacations, it won't ship until the new year. We don't want to rush something out at the potential cost of disrupting what is generally a quiet time for our engineers.

Ordinarily, I wouldn't talk about in progress work on social media, but y'all seem like you can keep a secret.

And there we go! One of the few accounts that I missed now is here!
Welcome @pointfreeco !!!!