I am working on a macOS desktop application using SwiftUI and am looking for a way to implement a trial version that expires after a specific period (e.g., 7 days). Additionally, I want to include the functionality to activate and deactivate a software license.
Requirements:
When the user first installs the app, they should be able to use it for a 7-day trial period.
After the trial period, the user should be prompted to enter a software license key to continue using the app.
The user should have the option to deactivate the license on their machine, so it can be used on a different machine.
I understand that this will likely involve both client-side and server-side logic. However, I am particularly interested in how to achieve this in SwiftUI for the client-side aspect.
I look for a basic example that implements this preferrable integration with stripe or other payment provider
Im looking for advice
Searched paddle and stripe repros for examples but havent found anyrhing like this.
Sure there must exist an example not having to reinvent the wheel
an beatefull example of what i mean is
sipapp
they implement paddle bit nowhere in paddle githib i find an example app that does imement the licensing like this with a trail period.