-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whole Cell is covered animation(Programmatically Solved!!) #283
Comments
Solved issue; |
Hello @oguzveozturk I also work on the UI programmatically, and in my case also on UITableViewCell, But I face a problem with the layout during animating as the layout keeps jumping.
|
hi i tried creating programmatic view as like mentioned above but i dont see any skeleton view for it import UIKit class ViewController: UIViewController { private let uiTableView: UITableView = { override func viewDidLoad() {
} final func setupTableView(_ tableView: UITableView) { final func setTableViewDelegateAndDataSource(_ tableView: UITableView){ //table view delegate and data source func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func collectionSkeletonView(_ skeletonView: UITableView, cellIdentifierForRowAt indexPath: IndexPath) -> ReusableCellIdentifier { //functions to call skeleton view animations private final func showAnimationForView() { func stopSkeletonView() { func callNetwork() {
} //dumy view model //custom tableview cells with programatic UI let labelView: UILabel = { let uiImageView: UIImageView = { private lazy var stackView: UIStackView = { override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { } required init?(coder: NSCoder) { |
🙏🏼 Please check if it already exists other issue related with yours.
What did you do?
`import UIKit
import SkeletonView
class ViewController: UITableViewController, SkeletonTableViewDataSource {
}
class TableViewCell: UITableViewCell {
}`
What did you expect to happen?
just want to try skeleton animation in a simple project
What happened instead?
as it shows in the
picture;
whole cell is covered with animation, not the label inside.Steps to reproduce the behavior
my code is programmatically written. no storyboard or interface builder.
download project.
SkeletonView Environment
**SkeletonView version: 1.8.6
**Xcode version: 11.4
**Swift version: 5
The text was updated successfully, but these errors were encountered: