All Projects → vtourraine → Acknowlist

vtourraine / Acknowlist

Licence: mit
Acknowledgements screen displaying a list of licenses, for example from CocoaPods dependencies.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Acknowlist

Swifterswift
A handy collection of more than 500 native Swift extensions to boost your productivity.
Stars: ✭ 10,706 (+2631.12%)
Mutual labels:  tvos, cocoapods, uikit
Vtacknowledgementsviewcontroller
Acknowledgements screen displaying a list of licenses, for example from CocoaPods dependencies.
Stars: ✭ 863 (+120.15%)
Mutual labels:  tvos, cocoapods, uikit
Stepslider
StepSlider its custom implementation of slider such as UISlider for preset integer values.
Stars: ✭ 391 (-0.26%)
Mutual labels:  cocoapods, uikit
Ezswiftextensions
😏 How Swift standard types and classes were supposed to work.
Stars: ✭ 2,911 (+642.6%)
Mutual labels:  cocoapods, uikit
Shadowview
An iOS Library that makes shadows management easy on UIView.
Stars: ✭ 391 (-0.26%)
Mutual labels:  cocoapods, uikit
Invalidating
Backports the new @invalidating property wrapper to older platforms
Stars: ✭ 53 (-86.48%)
Mutual labels:  tvos, uikit
WebPKit
A framework that extends a variety of Cocoa APIs with capabilities for encoding and decoding WebP files for all of Apple's platforms.
Stars: ✭ 29 (-92.6%)
Mutual labels:  tvos, uikit
Skeletonui
☠️ Elegant skeleton loading animation in SwiftUI and Combine
Stars: ✭ 275 (-29.85%)
Mutual labels:  tvos, cocoapods
SwiftCurrent
A library for managing complex workflows in Swift
Stars: ✭ 286 (-27.04%)
Mutual labels:  tvos, uikit
Web3.swift
A pure swift Ethereum Web3 library
Stars: ✭ 295 (-24.74%)
Mutual labels:  tvos, cocoapods
Attributedstring
基于Swift插值方式优雅的构建富文本, 支持点击长按事件, 支持不同类型过滤, 支持自定义视图等.
Stars: ✭ 294 (-25%)
Mutual labels:  tvos, cocoapods
Functionkit
A framework for functional types and operations designed to fit naturally into Swift.
Stars: ✭ 302 (-22.96%)
Mutual labels:  tvos, cocoapods
SPConfetti
Show the confetti only when the user is having fun, and if not having fun, don't show it.
Stars: ✭ 187 (-52.3%)
Mutual labels:  tvos, uikit
curry
curry is a framework built to enhance and compliment Foundation and UIKit.
Stars: ✭ 47 (-88.01%)
Mutual labels:  tvos, uikit
Datez
📆 Breeze through Date, DateComponents, and TimeInterval with Swift!
Stars: ✭ 254 (-35.2%)
Mutual labels:  tvos, cocoapods
Driftwood
Driftwood is a DSL to make Auto Layout easy on iOS, tvOS and macOS.
Stars: ✭ 14 (-96.43%)
Mutual labels:  tvos, uikit
Audioindicatorbars
AIB indicates for your app users which audio is playing. Just like the Podcasts app.
Stars: ✭ 279 (-28.83%)
Mutual labels:  tvos, cocoapods
Xcglogger
A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number.
Stars: ✭ 3,710 (+846.43%)
Mutual labels:  tvos, cocoapods
Fire
🔥A delightful HTTP/HTTPS networking framework for iOS/macOS/watchOS/tvOS platforms written in Swift.
Stars: ✭ 243 (-38.01%)
Mutual labels:  tvos, cocoapods
RFKit
Toolkit for daily Cocoa development. Since 2012.
Stars: ✭ 20 (-94.9%)
Mutual labels:  tvos, uikit

AcknowList

Acknowledgements screen displaying a list of licenses, for example from CocoaPods dependencies.

Platform iOS Swift 5 Build Status Swift Package Manager CocoaPods compatible MIT license

Also available in Objective-C with VTAcknowledgementsViewController.

AcknowList screenshots

Features

  • Automatically load acknowledgments from CocoaPods-generated file
  • Remove unnecessary line breaks from licenses for better text wrapping
  • Optional list header and footer
  • Tappable links in header, footer, and acknowledgment text
  • Storyboard support
  • Dark Mode support
  • Dynamic Type support
  • Localized in 13 languages

Installation

CocoaPods

  1. Add pod 'AcknowList' to your Podfile.
  2. Run pod install.
  3. Add the Pods-#target#-acknowledgements.plist file generated by CocoaPods to your main target: drag and drop the file from the Pods/Target Support Files/Pods-#target#/ folder in your Xcode project (don’t copy the file, leave Copy items if needed unchecked).

Swift Package Manager

AcknowList can be installed with the Swift Package Manager (requires Xcode 12 for localized resources).

  1. Click on FileSwift PackagesAdd Package Dependency….
  2. Enter https://github.com/vtourraine/AcknowList.
  3. Select the version you’d like to use.

Initialization

The AcknowListViewController instance is usually pushed to an existing UINavigationController.

let viewController = AcknowListViewController()
navigationController.pushViewController(viewController, animated: true)

By default, the controller will try to guess the name of your .plist file, based on the bundle name (Pods-#bundle-name#-acknowledgements.plist). If that doesn’t match the file you’re looking for, you can initialize the view controller with a custom file name or path.

let viewController = AcknowListViewController(fileNamed: "Pods-AcknowExample-acknowledgements")
let path = Bundle.main.path(forResource: "Pods-AcknowExample-acknowledgements", ofType: "plist")
let viewController = AcknowListViewController(plistPath: path)

If you want to include licenses that are not part of a .plist file, you can create new Acknow instances, and use them for the acknowledgements array of the controller.

let acknow = Acknow(title: "...", text: "...")
let viewController = AcknowListViewController(acknowledgements: [acknow])

Customization

The controller can also display a header and a footer. By default, they are loaded from the generated plist file, but you can also directly change the properties values.

viewController.headerText = "We love open source software."
viewController.footerText = "Powered by CocoaPods.org"

The controller title is a localized value for “acknowledgements”. You might want to use this localized value for the button presenting the controller.

button.setTitle(AcknowLocalization.localizedTitle(), for: .normal)

By default, AcknowListViewController uses the “grouped” table view style. You can choose a different style:

let viewController = AcknowListViewController(plistPath: path, style: .plain)

If you need to further customize the appearance or behavior of this library, feel free to subclass its classes.

Apple TV

AcknowList is also compatible with tvOS for Apple TV apps.

AcknowList Apple TV screenshots

Requirements

AcknowList is written in Swift 5, requires iOS 9.0 or tvOS 9.0 and above, Xcode 11 and above.

Credits

AcknowList was created by Vincent Tourraine, and improved by a growing list of contributors.

License

AcknowList is available under the MIT license. See the LICENSE.txt file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].