mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Channel statistics improvements
This commit is contained in:
30
submodules/GraphCore/Sources/Models/LinesChartLabel.swift
Normal file
30
submodules/GraphCore/Sources/Models/LinesChartLabel.swift
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// LinesChartLabel.swift
|
||||
// GraphTest
|
||||
//
|
||||
// Created by Andrei Salavei on 3/18/19.
|
||||
// Copyright © 2019 Andrei Salavei. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
#if os(macOS)
|
||||
import Cocoa
|
||||
#else
|
||||
import UIKit
|
||||
#endif
|
||||
|
||||
struct LinesChartLabel: Hashable {
|
||||
let value: CGFloat
|
||||
let text: String
|
||||
}
|
||||
|
||||
class AnimatedLinesChartLabels {
|
||||
var labels: [LinesChartLabel]
|
||||
var isAppearing: Bool = false
|
||||
let alphaAnimator: AnimationController<CGFloat>
|
||||
|
||||
init(labels: [LinesChartLabel], alphaAnimator: AnimationController<CGFloat>) {
|
||||
self.labels = labels
|
||||
self.alphaAnimator = alphaAnimator
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user