This Topic/Discussion is to share tips regarding iOS App Development using Cursor.
Task: Find all the direct useage of UserDefaults and convert them into a single class based UserDefaults, so we can see all the UserDefault variables in one class, easy and clear.
Step 1: (Huge Data Gathering)
GPT 4.1 (costs 1 request) with max mode (API cost) - Use this if you want to create a list of all the files (anything) in whole codebase. This works like searching a needle in haystack, I use it when i have to migrate large number of items, like if i need to list all the direct useage of UserDefaults in the codebase to migrate them to something else like a class based userdefaults.
Step 2: (Thinking)
o3 (costs 1 request) - Use this if you want to describe your prompt in detail and if you want cursor to create a UserDefaultsMigrationWorkProgress.md file. It is the most capable thinking model. Works in this situation, as it already got all the list of Userdefaults in the app.
Step 3: (Continous Execution)
Claude sonnet 4 Thinking (costs 1 request) - Use this after you prepared the UserDefaultsMigrationWorkProgress.md file and just ask the claude to start implementing UserDefaultsMigrationWorkProgress.md file, and ask it to continue when ever it stops. It is the best executon model.
Which model knows iOS better?
- All OpenAI Models - knows ios better because it is developed on GITHUB data, which also contains iOS Code.
- All Gemini Models - Knows Android better and also best with general tasks.
- All Anthropic Models - Best at coding, be clear and provide context.
Note: Working with Storyboards is hectic, migrate to SwiftUI for 100% increase in ease.