TextEffects With SwiftUI and Physics
<p>I’m a fan of SwiftUI. I have been using it since its launch in 2019. In those five years, it has come a long way and had many updates, although some argue it isn’t ready for prime-time.</p>
<p>One of those prime-time features not available within SwiftUI is the iOS physics engine in the true sense of the beast, a facility in UIKit that’s been around for a long while. Join me in this piece to look at the means I put together to get around that shortfall and have fun. Don’t get me wrong, you have animations like springs in SwiftUI, but there is much more in the physics engine, as you’ll see.</p>
<h1>GameClass Template</h1>
<p>To kick off the project, I started by looking up one of my favourite reference sites Hacking with Swift, by Paul Hudson, to get a template of the code needed to use SpriteKit with SwiftUI. The code looks like this after I tweaked it a little:</p>
<p><a href="https://betterprogramming.pub/texteffects-with-swiftui-and-physics-2bcd1f1efad5"><strong>Visit Now</strong></a></p>