TvOSTextViewer 1.1.0

TvOSTextViewer 1.1.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by David Cordero.


Downloads

Total9,804
Week670
Month2,613

Installs

Apps19
Apps WeekApps This Week 5
Test Targets3
Test WeekTests This week 2
powered by Segment

GitHub

Stars24
Watchers3
Forks1
Issues0
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 91


  • By
  • David Cordero

Light and scrollable view controller for tvOS to present blocks of text

Description

TvOSTextViewer is a view controller to present blocks of text on the same way native Apps do it on tvOS.

Customizable properties:

  • text: The block of text to be presented
  • textEdgeInsets: Margins for the text
  • backgroundBlurEffectStyle: .dark by default
  • textAttributes: Custom fonts/sizes, text colors, alignment, etc... via NSAttributedText

Requirements

  • tvOS 9.0+
  • Xcode 8.2

Usage

All you need is to create an instance of TvOSTextViewerViewController and present it on the screen:

let viewController = TvOSTextViewerViewController()
viewController.text = "Hello World"
present(viewController, animated: true, completion: nil)

If you would like to show this fullscreen view comming from an awesome button cropping the text on the same way Apple does, you can use it in combination with TvOSMoreButton by cgoldsby