2021-02-03 06:01:50 +01:00
|
|
|
//
|
|
|
|
// TimelineBottomLoaderTableViewCell.swift
|
|
|
|
// Mastodon
|
|
|
|
//
|
|
|
|
// Created by sxiaojian on 2021/2/3.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
import Combine
|
2022-10-08 07:43:06 +02:00
|
|
|
import MastodonCore
|
2021-02-03 06:01:50 +01:00
|
|
|
|
2022-10-10 13:14:52 +02:00
|
|
|
public final class TimelineBottomLoaderTableViewCell: TimelineLoaderTableViewCell {
|
2021-07-15 11:26:04 +02:00
|
|
|
|
2022-10-10 13:14:52 +02:00
|
|
|
public override func prepareForReuse() {
|
2021-07-15 11:26:04 +02:00
|
|
|
super.prepareForReuse()
|
|
|
|
|
|
|
|
loadMoreLabel.isHidden = true
|
|
|
|
loadMoreButton.isHidden = true
|
|
|
|
}
|
|
|
|
|
2022-10-10 13:14:52 +02:00
|
|
|
public override func _init() {
|
2021-02-03 06:01:50 +01:00
|
|
|
super._init()
|
2021-03-17 09:16:55 +01:00
|
|
|
|
|
|
|
activityIndicatorView.isHidden = false
|
2021-03-16 12:28:52 +01:00
|
|
|
startAnimating()
|
2021-02-03 06:01:50 +01:00
|
|
|
}
|
|
|
|
}
|
2021-02-24 12:08:30 +01:00
|
|
|
|
|
|
|
#if canImport(SwiftUI) && DEBUG
|
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
struct TimelineBottomLoaderTableViewCell_Previews: PreviewProvider {
|
|
|
|
|
|
|
|
static var previews: some View {
|
|
|
|
UIViewPreview(width: 375) {
|
|
|
|
TimelineBottomLoaderTableViewCell()
|
|
|
|
}
|
|
|
|
.previewLayout(.fixed(width: 375, height: 100))
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|