All Projects → vtourraine → Vtacknowledgementsviewcontroller

vtourraine / Vtacknowledgementsviewcontroller

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

Projects that are alternatives of or similar to Vtacknowledgementsviewcontroller

Acknowlist
Acknowledgements screen displaying a list of licenses, for example from CocoaPods dependencies.
Stars: ✭ 392 (-54.58%)
Mutual labels:  tvos, cocoapods, uikit
Swifterswift
A handy collection of more than 500 native Swift extensions to boost your productivity.
Stars: ✭ 10,706 (+1140.56%)
Mutual labels:  tvos, cocoapods, uikit
Anim
Swift animation library for iOS, tvOS and macOS.
Stars: ✭ 520 (-39.75%)
Mutual labels:  tvos, cocoapods
Swiftframeworktemplate
A template for new Swift iOS / macOS / tvOS / watchOS Framework project ready with travis-ci, cocoapods, Carthage, SwiftPM and a Readme file
Stars: ✭ 527 (-38.93%)
Mutual labels:  tvos, cocoapods
Gradientview
Easily use gradients in UIKit for iOS & tvOS
Stars: ✭ 610 (-29.32%)
Mutual labels:  tvos, cocoapods
Ttsegmentedcontrol
An elegant, animated and customizable segmented control for iOS created by Tapptitude
Stars: ✭ 471 (-45.42%)
Mutual labels:  cocoapods, uikit
Googlereporter
Easily integrate with Google Analytics in your iOS app
Stars: ✭ 479 (-44.5%)
Mutual labels:  tvos, cocoapods
Xcake
🍰 Describe Xcode projects in a human readable format and (re)generate one on demand.
Stars: ✭ 549 (-36.38%)
Mutual labels:  tvos, cocoapods
Guitar
A Cross-Platform String and Regular Expression Library written in Swift.
Stars: ✭ 641 (-25.72%)
Mutual labels:  tvos, cocoapods
Open Source Ios Apps
📱 Collaborative List of Open-Source iOS Apps
Stars: ✭ 28,826 (+3240.21%)
Mutual labels:  tvos, cocoapods
Swiftui
A collaborative list of awesome SwiftUI resources. Feel free to contribute!
Stars: ✭ 774 (-10.31%)
Mutual labels:  tvos, uikit
Hokusai
A Swift library to provide a bouncy action sheet
Stars: ✭ 431 (-50.06%)
Mutual labels:  cocoapods, uikit
Swiftuipager
Native Pager in SwiftUI
Stars: ✭ 430 (-50.17%)
Mutual labels:  tvos, cocoapods
Watchdoginspector
Shows your current framerate (fps) in the status bar of your iOS app
Stars: ✭ 497 (-42.41%)
Mutual labels:  cocoapods, uikit
Tweetextfield
Lightweight set of text fields with nice animation and functionality. 🚀 Inspired by https://uimovement.com/ui/2524/input-field-help/
Stars: ✭ 421 (-51.22%)
Mutual labels:  cocoapods, uikit
Sablurimageview
You can use blur effect and it's animation easily to call only two methods.
Stars: ✭ 538 (-37.66%)
Mutual labels:  tvos, cocoapods
Statusalert
Display Apple system-like self-hiding status alerts. It is well suited for notifying user without interrupting user flow in iOS-like way.
Stars: ✭ 809 (-6.26%)
Mutual labels:  cocoapods, uikit
Stepslider
StepSlider its custom implementation of slider such as UISlider for preset integer values.
Stars: ✭ 391 (-54.69%)
Mutual labels:  cocoapods, uikit
Tlyshynavbar
Unlike all those arrogant UINavigationBar, this one is shy and humble! Easily create auto-scrolling navigation bars!
Stars: ✭ 3,780 (+338.01%)
Mutual labels:  cocoapods, uikit
Urlembeddedview
URLEmbeddedView automatically caches the object that is confirmed the Open Graph Protocol.
Stars: ✭ 633 (-26.65%)
Mutual labels:  tvos, cocoapods

VTAcknowledgementsViewController

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

Platform iOS Build Status CocoaPods compatible MIT license

Also available in Swift with AcknowList.

VTAcknowledgementsViewController 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 12 languages

Installation

CocoaPods is the most common solution to install this library.

  1. Add pod 'VTAcknowledgementsViewController' 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).

Initialization

The VTAcknowledgementsViewController instance is usually pushed to an existing UINavigationController.

VTAcknowledgementsViewController *viewController = [VTAcknowledgementsViewController acknowledgementsViewController];
[self.navigationController pushViewController:viewController animated:YES];

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.

viewController = [[VTAcknowledgementsViewController alloc] initWithFileNamed:@"Pods-MyTarget-acknowledgements"];
NSString *path = [[NSBundle mainBundle] pathForResource:@"Pods-MyTarget-acknowledgements" ofType:@"plist"];
viewController = [[VTAcknowledgementsViewController alloc] initWithPath:path];

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

VTAcknowledgement *customLicense = [[VTAcknowledgement alloc] initWithTitle:@"..." text:@"..." license:nil];
viewController = [[VTAcknowledgementsViewController alloc] initWithAcknowledgements:@[customLicense]];

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. If these texts contain a link, the view is tappable, and opens a browser with the URL.

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.

NSString *localizedTitle = [VTLocalization localizedTitle]; 
[button setTitle:localizedTitle forState:UIControlStateNormal];

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

viewController = [[VTAcknowledgementsViewController alloc] initWithAcknowledgements:@[] style:UITableViewStylePlain];

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

Apple TV

VTAcknowledgementsViewController is also compatible with tvOS for Apple TV apps.

VTAcknowledgementsViewController Apple TV screenshots

Requirements

VTAcknowledgementsViewController supports iOS 9.0 or tvOS 9.0 and above, and requires Xcode 11.0 and above. If you need lower requirements, look for an older version of this repository.

Credits

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

License

VTAcknowledgementsViewController is available under the MIT license. See the LICENSE.md 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].