how to update an object in realm swift?

I'm trying to learn how to use Realm Swift and Charts so i can eventually use them both in an app I'm building and I...