Skip to content
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

Eye button disappear #29

Open
jamestsang opened this issue Feb 8, 2019 · 5 comments
Open

Eye button disappear #29

jamestsang opened this issue Feb 8, 2019 · 5 comments

Comments

@jamestsang
Copy link

I use TinyCrayon 3.3.2 and the eye button disappear.

@zengxinzhy
Copy link
Contributor

Fixed in the latest release

@DanielZanchi
Copy link

The eye button is still missing :(

@DanielZanchi
Copy link

any news on the eye button??

@GalaevAlexey
Copy link

Same issue for me, using last version 5.0.0.0.0

@jamestsang
Copy link
Author

jamestsang commented Jun 25, 2019

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)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants