Git Product home page Git Product logo

appinfolist's Introduction

AppInfoList

Display support and application information on the settings screen View. Non-licensed cells, when tapped, will transition to the default browser and open the page with the set URL. This library uses LicenseList by cybozu. Thank you for your wonderful library!

This GIF was taken using a simulator, so you can't see the app store page when the "write a review" button was tapped.

License Type

  • MIT License

Development

  • Swift 5
  • Xcode 14.2

Installing

Requirements

  • iOS 16.0 or later

Procedure

  1. Install AppInfoList to your project
    1. File → Add Packages...
    2. Enter https://github.com/kamimi01/AppInfoList.git
  2. Setup for LicenseList

How to Use in your code

Minimum

let info = AppInfo(
    termOfUseURL: URL(string: "https://kamimi01.github.io/PomodoroCounter/privacy_policy/ja.html")!,
    appURL: URL(string: "https://apps.apple.com/jp/app/ez-pomo/id1668609447?l=ja")!,
    developerInfoURL: URL(string: "https://twitter.com/kamimi_01")!,
    appStoreID: "1668609447"
)

AppInfoListView(
    info: info,
    licenseFileURL: Bundle.main.url(forResource: "license-list", withExtension: "plist")!
)

You can change text colors and titles in cells with AppInfoAppearance.

let appearance = AppInfoAppearance(
    cellTextColor: .red,
    versionTextColor: .green,
)

AppInfoListView(
    appearance: appearance,
    ・・・
)
let appearance = AppInfoAppearance(
    cellTitles: CellTitles(
        termsOfUse: "Terms of Use"
    )
)

AppInfoListView(
    appearance: appearance,
    ・・・
)

If you don't want to display a cell, don't need to pass URL to AppInfo

appinfolist's People

Contributors

kamimi01 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.