# UIView.transition by setting .isHidden property broken in iOS 12?

**URL:** <https://forums.kodeco.com/t/uiview-transition-by-setting-ishidden-property-broken-in-ios-12/45615>\
**Category:** iOS\
**Created:** [August 7, 2018, 5:44pm UTC](https://forums.kodeco.com/t/uiview-transition-by-setting-ishidden-property-broken-in-ios-12/45615 "2018-08-07T17:44:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![avianate](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/avianate/32/81494_2.png) [@avianate](https://forums.kodeco.com/u/avianate)\
**Post date:** [August 7, 2018, 5:44pm UTC](https://forums.kodeco.com/t/uiview-transition-by-setting-ishidden-property-broken-in-ios-12/45615/1 "2018-08-07T17:44:35Z")

</div>

In the animation transitions playground for the beginning iOS animation course, it appears that in iOS 12 you can’t use the .isHidden property like this:

```
UIView.transition(
      with: beachball,
      duration: duration,
      options: beachballOptions,
      animations: {
        self.beachball.isHidden = shouldHide
      },
      completion: nil)

```

So how does one go about performing these types of transitions now?

---

<div class="post-metadata">

**Author:** ![jayantvarma](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jayantvarma/32/111768_2.png) [@jayantvarma](https://forums.kodeco.com/u/jayantvarma)\
**Post date:** [August 8, 2018, 8:26am UTC](https://forums.kodeco.com/t/uiview-transition-by-setting-ishidden-property-broken-in-ios-12/45615/2 "2018-08-08T08:26:48Z")

</div>

hi @avianate,  
have you tried using `.alpha = 0` instead and in the completions `closure` set the `isHidden` to `true` or `false`

cheers,

Jayant

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [January 21, 2019, 9:44am UTC](https://forums.kodeco.com/t/uiview-transition-by-setting-ishidden-property-broken-in-ios-12/45615/3 "2019-01-21T09:44:38Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
