How to use Cursor to build Swift code (or along with Xcode)

I’m playing with Cursor for the first time (so far awesome!). My intent is to write Swift to build an app on macOS. At this moment, I still rely on the build function in Xcode, so I have both editors open and use Cursor only for chatting on top of the code base. However, I am afraid to hit “apply suggestions” and save.

  1. Can I somehow build my Swift app without Xcode, ideally in Cursor?
  2. If not, is it safe to save in one editor (Cursor) and continue in another (Xcode)? I use Git for versioning as well, so I don’t want to mess it up.

Thanks a bunch!