mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-01 10:23:15 +00:00
35 lines
873 B
Swift
35 lines
873 B
Swift
import Foundation
|
|
import Display
|
|
import AsyncDisplayKit
|
|
import UIKit
|
|
import SwiftSignalKit
|
|
|
|
final class ShareRecipientsActionSheetController: ActionSheetController {
|
|
private let _ready = Promise<Bool>()
|
|
override var ready: Promise<Bool> {
|
|
return self._ready
|
|
}
|
|
private var didSetReady = false
|
|
|
|
var location: () -> Void = { }
|
|
var contacts: () -> Void = { }
|
|
|
|
override init() {
|
|
super.init()
|
|
|
|
self._ready.set(.single(true))
|
|
|
|
self.setItemGroups([
|
|
ActionSheetItemGroup(items: [
|
|
ActionSheetButtonItem(title: "Cancel", action: { [weak self] in
|
|
self?.dismissAnimated()
|
|
}),
|
|
])
|
|
])
|
|
}
|
|
|
|
required init(coder aDecoder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
}
|