{"id":40615153,"url":"https://github.com/hackiftekhar/iqpaywallui","last_synced_at":"2026-01-21T06:01:44.700Z","repository":{"id":324738845,"uuid":"1098308792","full_name":"hackiftekhar/IQPaywallUI","owner":"hackiftekhar","description":"Paywall UI screen with simple configuration and offline Purchase and Subscription Tracker using StoreKit2","archived":false,"fork":false,"pushed_at":"2026-01-02T13:39:33.000Z","size":410,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-10T23:24:27.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hackiftekhar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"hackiftekhar","buy_me_a_coffee":"hackiftekhar","custom":["https://www.paypal.me/hackiftekhar"]}},"created_at":"2025-11-17T14:23:59.000Z","updated_at":"2026-01-02T13:39:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hackiftekhar/IQPaywallUI","commit_stats":null,"previous_names":["hackiftekhar/iqpaywallui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hackiftekhar/IQPaywallUI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQPaywallUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQPaywallUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQPaywallUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQPaywallUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackiftekhar","download_url":"https://codeload.github.com/hackiftekhar/IQPaywallUI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackiftekhar%2FIQPaywallUI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28628701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-21T06:01:42.582Z","updated_at":"2026-01-21T06:01:44.691Z","avatar_url":"https://github.com/hackiftekhar.png","language":"Swift","funding_links":["https://github.com/sponsors/hackiftekhar","https://buymeacoffee.com/hackiftekhar","https://www.paypal.me/hackiftekhar"],"categories":[],"sub_categories":[],"readme":"# IQPaywallUI\n\n[![CI Status](https://img.shields.io/travis/hackiftekhar/IQPaywallUI.svg?style=flat)](https://travis-ci.org/hackiftekhar/IQPaywallUI)\n[![Version](https://img.shields.io/cocoapods/v/IQPaywallUI.svg?style=flat)](https://cocoapods.org/pods/IQPaywallUI)\n[![License](https://img.shields.io/cocoapods/l/IQPaywallUI.svg?style=flat)](https://cocoapods.org/pods/IQPaywallUI)\n[![Platform](https://img.shields.io/cocoapods/p/IQPaywallUI.svg?style=flat)](https://cocoapods.org/pods/IQPaywallUI)\n\n[![Screenshot 1](https://raw.githubusercontent.com/hackiftekhar/IQPaywallUI/master/Screenshot/IQPaywallUIScreenshot.png)]\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n## Installation\n\nIQPaywallUI is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'IQPaywallUI'\n```\n\n## Usage\n\nIn AppDelegate, setup all your product ids\n```swift\nimport IQPaywallUI\nclass AppDelegate: UIResponder, UIApplicationDelegate {\n    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -\u003e Bool {\n\n        IQPaywallUI.configure(productIds: [\n            \"com.paywall.ui.monthly\",\n            \"com.paywall.ui.yearly\",\n            \"com.paywall.ui.lifetime\"\n        ])\n\n        return true\n    }\n}\n```\n\nWhen you'll need to present the PaywallUI, create a configuration object and present it like below\n\n```swift\n    @IBAction func showPaywallAction(_ sender: UIButton) {\n    \n        let semibold30 = UIFont(name: \"KohinoorBangla-Semibold\", size: 30)!\n        let semibold20 = UIFont(name: \"KohinoorBangla-Semibold\", size: 20)!\n        let semibold15 = UIFont(name: \"KohinoorBangla-Semibold\", size: 15)!\n        let regular15 = UIFont(name: \"KohinoorBangla-Regular\", size: 15)!\n        let light12 = UIFont(name: \"KohinoorBangla-Light\", size: 12)!\n        let themeColor = UIColor.systemPink\n\n        var configuration = IQPaywallConfiguration()\n        configuration.elements.append(.logo(.init(UIImage(named:\"your_logo\")!, backgroundColor: themeColor)))\n        configuration.elements.append(.title(.init(\"Unlock Pro Features\", style: .init(font: semibold30, color: themeColor))))\n        configuration.elements.append(.subtitle(.init(\"Get access to all our pro features\", style: .init(font: semibold15, color: themeColor))))\n        configuration.elements.append(.feature(.init(titles: [\"Remove all ads\",\n                                                              \"Customize Color Themes\",\n                                                              \"Unlock Pixel Ratio feature\",\n                                                              \"Persist Your Settings\"],\n                                                     icon: .init(UIImage(systemName: \"checkmark.circle.fill\")!, color: themeColor),\n                                                     style: .init(font: regular15, color: themeColor))))\n\n        configuration.elements.append(.product(.init(style: .card,\n                                                     nameStyle: .init(font: semibold20, color: themeColor),\n                                                     priceStyle: .init(font: semibold20, color: themeColor),\n                                                     subscriptionPeriodStyle: .init(font: light12, color: themeColor),\n                                                     descriptionStyle:.init(font: regular15, color: themeColor)\n                                                    ))\n        )\n\n        // Set the productID's you would like to show in the screen\n        configuration.productIds = [\"com.paywall.ui.monthly\",\n                                    \"com.paywall.ui.lifetime\"\n        ]\n        \n        //Optionally select the recommended product id which will be selected by default in the PaywallUI\n        configuration.recommendedProductId = \"com.infoenum.ruler.yearly\"\n\n        configuration.actionButton.font = semibold20\n\n        configuration.terms = .init(\"Terms \u0026 Conditions\", url: URL(string: \"https://www.terms.com\")!)\n        configuration.privacyPolicy = .init(\"Privacy Policy\", url: URL(string: \"https://www.privacy.com\")!)\n\n        configuration.backgroundColor = UIColor.white\n        configuration.foregroundColor = themeColor\n        configuration.linkStyle = .init(font: regular15, color: themeColor)\n        \n        let hostingController = UIHostingController(rootView: PaywallView(configuration: configuration))\n        hostingController.modalPresentationStyle = .fullScreen\n        self.present(hostingController, animated: true)\n    } \n```\n\nTo dynamically get notified when product status has changed. You can always observe it's notification\n```swift\n        NotificationCenter.default.addObserver(forName: PurchaseStatusManager.purchaseStatusDidChangedNotification, object: nil, queue: nil) { _ in\n        ...\n        }\n```\n\nTo get status of the purchase by the product id, you can always get it's snapshot which contains most of the information.\n```swift\n        let isMonthlySubscriptionActive = PurchaseStatusManager.shared.isActive(productID: \"com.paywall.ui.monthly\")\n        \n        // Currently active plan from the subscription\n        let currentlyActivePlan: ProductStatus? = PurchaseStatusManager.shared.currentlyActivePlan\n\n        // Detailed snapshot of a product id\n        let snapshot: ProductStatus? = PurchaseStatusManager.shared.snapshot(for: \"com.paywall.ui.monthly\")\n        \n        // Check if any plan is currently active\n        let isSubscribed = PurchaseStatusManager.shared.isAnyPlanActive\n```\n\n## Author\n\nhackiftekhar, ideviftekhar@gmail.com\n\n## License\n\nIQPaywallUI is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackiftekhar%2Fiqpaywallui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackiftekhar%2Fiqpaywallui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackiftekhar%2Fiqpaywallui/lists"}