Skip to content

Use UIView.TintAdjustmentMode #34

Open

Description

@ivan-magda

Hey, @rnystrom

I think it would be nice to update tintAdjustmentMode like Apple UI controls do.
If you wish I can create a PR, just two lines of code:

  • on appear
UIApplication.shared.keyWindow?.tintAdjustmentMode = .dimmed
  • on disappear
UIApplication.shared.keyWindow?.tintAdjustmentMode = .normal

ezgif com-resize

Activity

  1. rnystrom commented on Sep 13, 2018

    @rnystrom
    Member

    Scratching my head, what’s he difference? What value does this add? I’m not familiar with the API.

    Sent with GitHawk

  2. av0c0der commented on Jan 5, 2019

    @av0c0der
    Contributor

    @rnystrom seems like you didn't note how the color of UIBarButtonItems have changed? .dimmed tint mode makes them black & white, this API is used in UIAlertController.

  3. rnystrom commented on Jan 5, 2019

    @rnystrom
    Member

    @jauzee what do you mean about the color change?

  4. av0c0der commented on Jan 5, 2019

    @av0c0der
    Contributor

    @rnystrom I meant tint color of the buttons on the gif.

  5. rnystrom commented on Jan 5, 2019

    @rnystrom
    Member

    Oh now I see it! TIL that’s a thing. I’m down with offering this as an optional config.

    Sent with GitHawk

  6. av0c0der commented on Jan 5, 2019

    @av0c0der
    Contributor

    @rnystrom one thing to note here — if we apply tintAdjustmentMode on the key window it will apply it on the presented view controller's subviews too.

    I've also read about this API just a few weeks ago. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions