diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e3311b..2f6a416 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,13 @@ open: **a second build under the same version goes under the already cut heading, not back under `Unreleased`.** Date the heading and add its compare link once the version tag exists. +## [Unreleased] + +### Fixed + +- An email address or a date in a PDF no longer has a link drawn over it, + which showed the text twice. + ## [1.44] ### Changed @@ -283,7 +290,7 @@ submitted. - An incorrect password is now reported as such instead of a generic failure. - Page handling and decryption fixes when opening protected documents. -[Unreleased]: https://github.com/opendocument-app/OpenDocument.ios/compare/v1.43...HEAD +[Unreleased]: https://github.com/opendocument-app/OpenDocument.ios/compare/v1.44...HEAD [1.43]: https://github.com/opendocument-app/OpenDocument.ios/compare/v1.42...v1.43 [1.42]: https://github.com/opendocument-app/OpenDocument.ios/compare/v1.41...v1.42 [1.41]: https://github.com/opendocument-app/OpenDocument.ios/compare/v1.40...v1.41 diff --git a/OpenDocumentReader/DocumentWebView.swift b/OpenDocumentReader/DocumentWebView.swift new file mode 100644 index 0000000..36ddf19 --- /dev/null +++ b/OpenDocumentReader/DocumentWebView.swift @@ -0,0 +1,15 @@ +import WebKit + +/// Built here rather than decoded: a nib turns every data detector on, and a +/// configuration cannot be changed once the view has it. Detectors draw links +/// over the invisible text a pdf carries for selection and search. +final class DocumentWebView: WKWebView { + + required init?(coder: NSCoder) { + let configuration = WKWebViewConfiguration() + configuration.dataDetectorTypes = [] + configuration.mediaTypesRequiringUserActionForPlayback = [] + + super.init(frame: .zero, configuration: configuration) + } +} diff --git a/OpenDocumentReader/Main.storyboard b/OpenDocumentReader/Main.storyboard index a49a518..2205f5a 100644 --- a/OpenDocumentReader/Main.storyboard +++ b/OpenDocumentReader/Main.storyboard @@ -69,7 +69,7 @@ - +