Send non opaque images from pasteboard as stickers

Language suggestion alert
Ability to create new contact from "tel:"-link context menu and chat search
Upload date display for profile pictures
Instant View improvements
This commit is contained in:
Ilya Laktyushin
2018-11-11 18:03:00 +04:00
parent 5dc7781fb9
commit cc17271034
75 changed files with 2526 additions and 1399 deletions

View File

@@ -52,6 +52,7 @@ final class GalleryThumbnailContainerNode: ASDisplayNode, UIScrollViewDelegate {
private let scrollNode: ASScrollNode
private(set) var items: [GalleryThumbnailItem] = []
private(set) var indexes: [Int] = []
private var itemNodes: [GalleryThumbnailItemNode] = []
private var centralIndexAndProgress: (Int, CGFloat?)?
private var currentLayout: CGSize?
@@ -84,7 +85,8 @@ final class GalleryThumbnailContainerNode: ASDisplayNode, UIScrollViewDelegate {
}
}
func updateItems(_ items: [GalleryThumbnailItem], centralIndex: Int, progress: CGFloat) {
func updateItems(_ items: [GalleryThumbnailItem], indexes: [Int], centralIndex: Int, progress: CGFloat) {
self.indexes = indexes
var items: [GalleryThumbnailItem] = items.count <= 1 ? [] : items
var updated = false
if self.items.count == items.count {