mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various fixes
This commit is contained in:
parent
4928372289
commit
ab19c3d8fb
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user