Cursor AI and iOS App 2

Dayton Pruet
3 min readNov 24, 2024

Coding my second iOS application with Cursor AI…

Photo by Mohammad Rahmani on Unsplash

There are numerous videos on YouTube and articles here on Medium about how this setup works, so my article is not going to be a full tutorial. Instead, I will write about my experience and a few takeaways.

For my second iOS application I wanted to build using the Cursor AI IDE, I wanted to build a simple stock tracking bot. In my initial Composer prompt I gave it a few requirements. These bullet points are a little more concise for this article.

  1. Use the Alpha Advantage API to fetch the stock price.
  2. A field to provide a single stock ticker symbol.
  3. A field to provide a starting price to compare the real-time price against.
  4. A field to provide a desired percentage of change to compare against the calculated one in the application.
  5. A switch to turn to active monitoring on and off.
  6. Send the user a notification on the iOS device when the calculated percentage change is greater than the desired, whether up or down.
  7. When the monitoring is enabled, in a background thread fetch the current stock price every 5 minutes.

When I made my list of requirements, I started by putting them in a text file. I had a few starting sentences to tell the…

--

--

Dayton Pruet
Dayton Pruet

Written by Dayton Pruet

GDG and GDG Cloud community groups Organizer and previous GDG Mentor, cloud and mobile developer, tech enthusiast, podcast junkie.

No responses yet