Latest1.1.1
Homepagehttps://github.com/mahmudahsan/AppsPortfolio
LicenseMIT
Platformsios 9.0
FrameworksFoundation
Authors

To showcase multiple apps of a developer for cross promotion. Its an offline way to show user about other apps and it’s also possible to know which app users are having more interest. I have been using this UI in all of my iOS apps for cross promoting my other apps. This is a complete project but any improvements are welcome.

In plist data, if there is only one category mention for example games, then the segmented tab at top will not be shown. To show segmented tab with categories you must have to provide at least 2 categories of apps. Please check the plist file structure to know how to provide app list.


CocoaPods


Swift Package Manager


Twitter: @mahmudahsan

Apps Portfolio

Features

  • [X] Showcase apps for cross promotion
  • [X] Delegate to integrate analytics to see which app user visits in app store
  • [X] Works in both iPhone and iPad

Examples

Integrate within a UIViewController:

let bundle = Bundle(for: AppsPortfolioViewController.self)
let storyboard = UIStoryboard(name: "AppsPortfolio", bundle: bundle)

let appsPortfolioVC = storyboard.instantiateInitialViewController() as! AppsPortfolioViewController
appsPortfolioVC.title     = "Portfolio"
appsPortfolioVC.loadAppList(name: "sample_portfolio")
self.navigationController?.pushViewController(appsPortfolioVC, animated: true)

Implement delegate to inform when user tap an app:

let bundle = Bundle(for: AppsPortfolioViewController.self)
let storyboard = UIStoryboard(name: "AppsPortfolio", bundle: bundle)

let appsPortfolioVC = storyboard.instantiateInitialViewController() as! AppsPortfolioViewController
appsPortfolioVC.title     = "Portfolio"

//assigning analytics delegates
appsPortfolioVC.setAnalyticsDelegate(any: self) 

appsPortfolioVC.loadAppList(name: "sample_portfolio")
self.navigationController?.pushViewController(appsPortfolioVC, animated: true)

One delegate method need to implement to know user interaction:

extension ViewController : Analytics{
    func appClicked(appNamed: String) {
        print("App: (appNamed) clicked.")
    }
}

sample_portfolio.plist file structure:

plist flie stucture

Usage in an iOS application

Either

  • Drag the folders AppsPortfolio/Sources folder into your application’s Xcode project.

or

  • Use CocoaPods or the Swift Package manager to include AppsPortfolio as a dependency in your project.
pod 'AppsPortfolio', :git => 'https://github.com/mahmudahsan/AppsPortfolio.git'
  • In your project create a new apps_portfolio.plist file and provide your apps list. Follow the sample_portfolio.plist file format provided in AppsPortfolio/Data.

  • In your project add the icons of your cross promoting apps and mention them in your plist file. Better use Images.assets to add apps’s icons.

Images

Questions or feedback?

Feel free to open an issue, or find me @mahmudahsan on Twitter.

Latest podspec

{
    "name": "AppsPortfolio",
    "version": "1.1.1",
    "summary": "To showcase multiple apps of a developer for cross promotion",
    "description": "To showcase multiple apps of a developer for cross promotion using Swift. Its an offline way to show user about other apps and it's also possible to know which app users are having more interest.",
    "homepage": "https://github.com/mahmudahsan/AppsPortfolio",
    "screenshots": [
        "https://github.com/mahmudahsan/AppsPortfolio/raw/master/preview.gif",
        "https://github.com/mahmudahsan/AppsPortfolio/raw/master/plist_file.png"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Mahmud Ahsan": "[email protected]"
    },
    "social_media_url": "http://twitter.com/mahmudahsan",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/mahmudahsan/AppsPortfolio.git",
        "tag": "1.1.1"
    },
    "source_files": "AppsPortfolio/Sources/**/*.{swift}",
    "resources": [
        "AppsPortfolio/Sources/**/*.{storyboard}"
    ],
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This