AppStoreList is a SwiftUI library that allows you to display a list of apps from the App Store in an aesthetically pleasing way. It uses StoreKit
to fetch app details and presents a user-friendly list that supports navigation to the App Store.
- π± Fetch and display apps from the App Store.
- π¨ Fully designed for SwiftUI.
- π Supports searching for apps by artist ID, app ID, or bundle ID.
- π Opens the App Store page seamlessly.
- π‘ Handles network requests asynchronously with
async/await
. - π Compatible with both CocoaPods and Swift Package Manager.
To install via Swift Package Manager, follow these steps:
- Open Xcode and go to File > Add Packagesβ¦.
- Enter the repository URL: https://github.com/rnaharro/AppStoreList
- Choose the latest version and click Add Package.
To install via CocoaPods, add the following line to your Podfile
:
pod 'AppStoreList'
Then, run:
pod install
import SwiftUI
import AppStoreList
struct ContentView: View {
var body: some View {
NavigationView {
AppStoreList(title: "Top Apps", artistId: 383673904)
}
}
}
Using a Custom ViewModel If you want to inject your own AppStoreViewModel, you can do:
let viewModel = AppStoreViewModel()
AppStoreList(title: "My Apps", viewModel: viewModel)
Opening the App Store Directly
If you need to open an app's App Store page manually:
Task {
await viewModel.presentApp(appObject)
}
Platform | Minimum Version |
---|---|
iOS | 16.0 |
macOS | β Not Supported |
watchOS | β Not Supported |
tvOS | β Not Supported |
- Requires Xcode 14+.
- Fully supports SwiftUI.
- Works with Swift 5.7+.
See the Releases page for details on updates.
AppStoreList is available under the MIT License. See the LICENSE file for more details.
Developed by Ricardo N. Feel free to contribute or report issues on the GitHub repository.