Skip to content

Commit

Permalink
Merge pull request vtourraine#63 from Wooder/fix-tvos-license-not-scr…
Browse files Browse the repository at this point in the history
…ollable

Fix acknowledgement details not "scrollable" on tvOS
  • Loading branch information
vtourraine authored Jan 7, 2020
2 parents ae9b7c3 + fd3637d commit dd84373
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/AcknowViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ open class AcknowViewController: UIViewController {
textView.dataDetectorTypes = .link

view.backgroundColor = UIColor.white
#elseif os(tvOS)
textView.isUserInteractionEnabled = true
textView.panGestureRecognizer.allowedTouchTypes = [NSNumber(value: UITouch.TouchType.indirect.rawValue)]
#endif
textView.textContainerInset = UIEdgeInsets.init(top: TopBottomDefaultMargin, left: LeftRightDefaultMargin, bottom: TopBottomDefaultMargin, right: LeftRightDefaultMargin)
view.addSubview(textView)
Expand Down

0 comments on commit dd84373

Please sign in to comment.