mastodon-ios/MastodonSDK/Sources/MastodonUI/View/TableViewCell/TimelineBottomLoaderTableVi...

45 lines
879 B
Swift
Raw Normal View History

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
public final class TimelineBottomLoaderTableViewCell: TimelineLoaderTableViewCell {
public override func prepareForReuse() {
super.prepareForReuse()
loadMoreLabel.isHidden = true
loadMoreButton.isHidden = true
}
public override func _init() {
2021-02-03 06:01:50 +01:00
super._init()
activityIndicatorView.isHidden = false
startAnimating()
2021-02-03 06:01:50 +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