diff --git a/submodules/BrowserUI/Sources/BrowserInstantPageContent.swift b/submodules/BrowserUI/Sources/BrowserInstantPageContent.swift index 2882ecbe74..f334322e60 100644 --- a/submodules/BrowserUI/Sources/BrowserInstantPageContent.swift +++ b/submodules/BrowserUI/Sources/BrowserInstantPageContent.swift @@ -1311,7 +1311,7 @@ final class BrowserInstantPageContent: UIView, BrowserContent, UIScrollViewDeleg } private func presentReferenceView(item: InstantPageTextItem, referenceAnchor: String) { - guard let theme = self.theme, let webPage = self.webPage else { + guard let webPage = self.webPage else { return } diff --git a/submodules/InstantPageUI/Sources/InstantPageReferenceController.swift b/submodules/InstantPageUI/Sources/InstantPageReferenceController.swift index e08a437250..318ecae4ef 100644 --- a/submodules/InstantPageUI/Sources/InstantPageReferenceController.swift +++ b/submodules/InstantPageUI/Sources/InstantPageReferenceController.swift @@ -7,7 +7,7 @@ import SwiftSignalKit import AccountContext import TelegramUIPreferences -final class InstantPageReferenceController: ViewController { +public final class InstantPageReferenceController: ViewController { private var controllerNode: InstantPageReferenceControllerNode { return self.displayNode as! InstantPageReferenceControllerNode } @@ -23,7 +23,7 @@ final class InstantPageReferenceController: ViewController { private let openUrlIn: (InstantPageUrlItem) -> Void private let present: (ViewController, Any?) -> Void - init(context: AccountContext, sourceLocation: InstantPageSourceLocation, theme: InstantPageTheme, webPage: TelegramMediaWebpage, anchorText: NSAttributedString, openUrl: @escaping (InstantPageUrlItem) -> Void, openUrlIn: @escaping (InstantPageUrlItem) -> Void, present: @escaping (ViewController, Any?) -> Void) { + public init(context: AccountContext, sourceLocation: InstantPageSourceLocation, theme: InstantPageTheme, webPage: TelegramMediaWebpage, anchorText: NSAttributedString, openUrl: @escaping (InstantPageUrlItem) -> Void, openUrlIn: @escaping (InstantPageUrlItem) -> Void, present: @escaping (ViewController, Any?) -> Void) { self.context = context self.sourceLocation = sourceLocation self.theme = theme diff --git a/submodules/InstantPageUI/Sources/InstantPageTextItem.swift b/submodules/InstantPageUI/Sources/InstantPageTextItem.swift index d0865f7fdd..af427754de 100644 --- a/submodules/InstantPageUI/Sources/InstantPageTextItem.swift +++ b/submodules/InstantPageUI/Sources/InstantPageTextItem.swift @@ -38,10 +38,10 @@ struct InstantPageTextImageItem { let id: EngineMedia.Id } -struct InstantPageTextAnchorItem { - let name: String - let anchorText: NSAttributedString? - let empty: Bool +public struct InstantPageTextAnchorItem { + public let name: String + public let anchorText: NSAttributedString? + public let empty: Bool } public struct InstantPageTextRangeRectEdge: Equatable { @@ -63,7 +63,7 @@ public final class InstantPageTextLine { let strikethroughItems: [InstantPageTextStrikethroughItem] let markedItems: [InstantPageTextMarkedItem] let imageItems: [InstantPageTextImageItem] - let anchorItems: [InstantPageTextAnchorItem] + public let anchorItems: [InstantPageTextAnchorItem] let isRTL: Bool init(line: CTLine, range: NSRange, frame: CGRect, strikethroughItems: [InstantPageTextStrikethroughItem], markedItems: [InstantPageTextMarkedItem], imageItems: [InstantPageTextImageItem], anchorItems: [InstantPageTextAnchorItem], isRTL: Bool) {