ContextMenu
ContextMenu copied to clipboard
Use UIView.TintAdjustmentMode
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

Scratching my head, what’s he difference? What value does this add? I’m not familiar with the API.
Sent with GitHawk
@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.
@Jauzee what do you mean about the color change?
@rnystrom I meant tint color of the buttons on the gif.
Oh now I see it! TIL that’s a thing. I’m down with offering this as an optional config.
Sent with GitHawk
@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. :)