This repository contains custom Cursor Rules designed to enhance your development experience with Superwall. By adding these rules, Cursor AI can generate better code suggestions tailored to the Superwall SDK, making integration faster and more accurate.
Currently, this is available for iOS (Swift), with support for more SDKs and languages coming soon.
To set up Superwall-specific rules in Cursor:
- Download the User Rule file for iOS from this repo:
ios-swiftui-cursor-rules-superwall-sdk.md
. - Open Cursor and navigate to Cursor โ Settingsโฆ โ Cursor Settings.
- Under User Rules, paste the contents of the downloaded rule file.
You can append these rules to any existing Cursor rules youโre using. For example:
[your existing rule]
[paste our Superwall rule below it]
For additional Cursor rules, check out cursorrules.io.
To get the best results from Cursor, explicitly mention the Superwall SDK in your prompts.
โ Recommended:
Using the Superwall SDK, register a placement called "drinkCoffee" and include a print statement saying `Coffee time` in the block.
โ Less Effective:
Register a placement called "drinkCoffee" and include a print statement saying `Coffee time` in the block.
Superwallโs SDK evolves, and weโll update these rules accordingly. Watch this repo for updates to ensure you always have the latest version.