Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add screenshots #3

Open
eonist opened this issue Apr 16, 2023 · 0 comments
Open

Add screenshots #3

eonist opened this issue Apr 16, 2023 · 0 comments

Comments

@eonist
Copy link
Member

eonist commented Apr 16, 2023

macOS:

Add UITestSugar package

Add this to UITest

ScreenShotMaker.screenShotWindow(name: "alert", testCase: self, window: app.windows.firstMatch)

Add this to AppDelegate:

 UpgradeAlert.config = {
         .init(
            isRequired: false, // Require users to update
            alertTitle: "Update available", // alert title
            alertMessage: { _, version in "MyApp version \(version) is available on the AppStore." }, // An optional message which you want to show to the user when user will be alerted for the force update.,
            laterButtonTitle: "Later", // skip button title
            updateButtonTitle: "Update Now" // go to appstore btn
         )
      }()
      DispatchQueue.main.async {
         UpgradeAlert.showAlert(appInfo: .init(version: "1.0.1", trackViewUrl: "https://apps.apple.com/app/id/com.MyCompany.MyApp"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant