TinyCrayon-iOS-SDK icon indicating copy to clipboard operation
TinyCrayon-iOS-SDK copied to clipboard

Eye button disappear

Open jamestsang opened this issue 6 years ago • 5 comments

I use TinyCrayon 3.3.2 and the eye button disappear.

jamestsang avatar Feb 08 '19 15:02 jamestsang

Fixed in the latest release

zengxinzhy avatar Mar 30 '19 17:03 zengxinzhy

The eye button is still missing :(

DanielZanchi avatar Apr 09 '19 14:04 DanielZanchi

any news on the eye button??

DanielZanchi avatar May 22 '19 13:05 DanielZanchi

Same issue for me, using last version 5.0.0.0.0

GalaevAlexey avatar Jun 07 '19 08:06 GalaevAlexey

Use below code to hot fix the problem tested on version 3.3.2 and 5.0.1

override func present(_ viewControllerToPresent: UIViewController, animated flag: Bool, completion: (() -> Void)? = nil) {
  if(viewControllerToPresent.description.contains("TCMask.MaskViewController")){
      let eyeView = viewControllerToPresent.view.subviews[2].subviews[0]
      eyeView.isHidden = false
      viewControllerToPresent.view.subviews[2].bringSubviewToFront(eyeView)
   }
   super.present(viewControllerToPresent, animated: flag, completion: completion)
}

jamestsang avatar Jun 25 '19 10:06 jamestsang