Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielamitay/DAAppsViewController
DAAppsViewController is a simple way of displaying apps from the App Store in an aesthetically similar manner.
https://github.com/danielamitay/DAAppsViewController
Last synced: 3 months ago
JSON representation
DAAppsViewController is a simple way of displaying apps from the App Store in an aesthetically similar manner.
- Host: GitHub
- URL: https://github.com/danielamitay/DAAppsViewController
- Owner: danielamitay
- License: other
- Created: 2013-04-14T09:16:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-04-24T07:13:54.000Z (7 months ago)
- Last Synced: 2024-07-20T11:06:23.451Z (4 months ago)
- Language: Objective-C
- Homepage:
- Size: 1.17 MB
- Stars: 465
- Watchers: 34
- Forks: 80
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# DAAppsViewController
`DAAppsViewController` is a simple way of displaying apps from the App Store in a similar UI/UX. The user is able to view each app's App Store page by launching an instance of `SKStoreProductViewController`. Particularly useful for showing an app developer's other apps.
For SwiftUI, you should use [AppsView](https://github.com/danielamitay/AppsView)
| By ArtistId | By List of AppIds | By Search Term |
|---|---|---|
| ![by artist id](./screenshots/screenshot-1.png) | ![by list of app ids](./screenshots/screenshot-2.png) | ![by search term](./screenshots/screenshot-3.png) |## Installation
Requires iOS 12.0+
#### Via CocoaPods
- Add to your Podfile:
```ruby
pod 'DAAppsViewController'
```
- `@import DAAppsViewController;`#### Manually
- Copy over the `DAAppsViewController` folder to your project folder.
- Add the **StoreKit** framework to your project.
- `#import "DAAppsViewController.h"`## Usage
Example project included (DAAppsViewControllerExample)
#### Displaying apps by a specific developer (useful for "Our other apps")
```objective-c
DAAppsViewController *appsViewController = [[DAAppsViewController alloc] init];
[appsViewController loadAppsWithArtistId:356087517 completionBlock:nil];
[self.navigationController pushViewController:appsViewController animated:YES];
```#### Displaying a predetermined set of apps
By **appId**:
```objective-c
NSArray *appsArray = @[@575647534,@498151501,@482453112,@582790430,@543421080];
DAAppsViewController *appsViewController = [[DAAppsViewController alloc] init];
appsViewController.pageTitle = @"Apps by XXX"; // Optional
[appsViewController loadAppsWithAppIds:appsArray completionBlock:nil];
[self.navigationController pushViewController:appsViewController animated:YES];
```By **bundleId**:
```objective-c
NSArray *bundlesArray = @[@"com.flexibits.fantastical.iphone",@"com.samvermette.Transit",@"com.tripsyapp.tripsy",@"com.seatgeek.SeatGeek",@"com.bumptechnologies.flock.Release"];
DAAppsViewController *appsViewController = [[DAAppsViewController alloc] init];
[appsViewController loadAppsWithBundleIds:bundlesArray completionBlock:nil];
[self.navigationController pushViewController:appsViewController animated:YES];
```#### Displaying apps for a specific App Store search term
```objective-c
DAAppsViewController *appsViewController = [[DAAppsViewController alloc] init];
[appsViewController loadAppsWithSearchTerm:@"Radio" completionBlock:nil];
[self.navigationController pushViewController:appsViewController animated:YES];
```