Juanpe / SkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
MIT License
12.51k stars 1.1k forks source link

UIButton image and UILabel text do not get removed when skeleton is shown in iOS 12 and iOS 11. #492

Open jazminebarroga opened 2 years ago

jazminebarroga commented 2 years ago

Description

UIButton image and UILabel text does not get removed when skeleton is shown in iOS 12 and iOS 11. The text and the button image are unseen when skeleton view is shown on iOS 13 and above.

What type of issue is this? (place an x in one of the [ ])

Requirements (place an x in each of the [ ])


Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

SkeletonView Environment:

SkeletonView version: 1.29.2 Xcode version: 13.2.1 Swift version: 5.3

Steps to reproduce:

Please replace this with the steps to reproduce the behavior. Scenario A:

  1. Create a UILabel with a text
  2. Trigger showAnimatedGradientSkeleton (showSkeleton and showAnimatedSkeleton can also be used to replicate the bug)
  3. Run in iOS 12 or iOS 11.

Scenario B: Alternatively you can,

  1. Create a UIButton and set an image instead of a title
  2. Trigger showAnimatedGradientSkeleton
  3. Run in iOS 12 and iOS 11

Expected result:

Scenario A: Text should be not seen from UILabel when skeleton is shown.

Scenario B: Button image should be not seen from the UIButton when skeleton is shown.

Actual result:

Scenario A: Text is seen in UILabel when skeleton is shown. The following screenshot is taken while the skeleton gradient is animating:

Screen Shot 2022-02-20 at 7 13 22 PM

Scenario B: Button image is seen in the UIButton when skeleton is shown. The following screenshot is taken while the skeleton gradient is animating:

Screen Shot 2022-02-20 at 7 26 09 PM
rjuzaszek commented 1 year ago

I can reproduce it with all of the iOS versions for labels, any update on this?