TABAnimated icon indicating copy to clipboard operation
TABAnimated copied to clipboard

同一个封装的View,不同的位置,骨架动画出现错乱。

Open iAmMccc opened this issue 4 years ago • 2 comments

New Issue Checklist

  • [x] I have read the Documentation
  • [x] I have searched for a similar issue in the project and found none

Issue Info

Info Value
Platform Name e.g. iOS / macOS
Platform Version e.g. 12.0 / 10.14.0
TABAnimated Version e.g. 5.0.0 / 4.4.0
Xcode Version e.g. Xcode 11 / Xcode 10
Repro rate e.g. all the time (100%) / sometimes x% / only once
Repro with our demo prj e.g. does it happen with our demo project?
Demo project link e.g. link to a demo project that highlights the issue

Issue Description and Steps

Please fill in the detailed description of the issue (full output of any stack trace, compiler error, ...) and the steps to reproduce the issue. image

    let allWidth = UIDevice.bt.width - 22
    let registerWidth = allWidth * 0.392
    let managerWidth = (allWidth - registerWidth) / 2
    
    addSubview(registerLabel)
    registerLabel.snp.makeConstraints {
        $0.center.equalTo(self)
        $0.height.equalTo(40)
        $0.width.equalTo(registerWidth)
    }
    
    addSubview(managerLabel)
    managerLabel.snp.makeConstraints {
        $0.centerY.equalTo(self)
        $0.height.equalTo(40)
        $0.width.equalTo(managerWidth)
        $0.left.equalTo(10)
    }

    addSubview(setUpDateLabel)
    setUpDateLabel.snp.makeConstraints {
        $0.centerY.equalTo(self)
        $0.height.equalTo(40)
        $0.width.equalTo(managerWidth)
        $0.right.equalTo(-10)
    }

iAmMccc avatar Nov 30 '21 11:11 iAmMccc

想只显示BDTopAndBottomView的骨架,不显示其内部的元素。 是通过这样的方式么? manager.animation()?(12)?.layer.removeAllSublayers() // manager.animation()?(9)?.layer.loadStyle = .remove

这样做不生效。

iAmMccc avatar Nov 30 '21 11:11 iAmMccc

tabAnimated.withoutSubViewsClass = BDTopAndBottomView.class

tigerAndBull avatar Dec 02 '21 05:12 tigerAndBull