     private func updatePosition() {
       switch position {
       case .lowered:
-        barWrapper.transform = CGAffineTransform(translationX: 0, y: barWrapper.bounds.height)
+        bar.transform = CGAffineTransform(translationX: 0, y: bar.bounds.height)
       case .raised:
-        barWrapper.transform = .identity
+        bar.transform = .identity
       }
       updateAdditionalSafeAreaInsets()
     }
 
     private func updateAdditionalSafeAreaInsets() {
-      if position == .raised, barWrapper.alpha > 0 {
+      if position == .raised, bar.alpha > 0 {
         content.additionalSafeAreaInsets =
-          UIEdgeInsets(top: 0, left: 0, bottom: barWrapper.bounds.height, right: 0)
+          UIEdgeInsets(top: 0, left: 0, bottom: bar.bounds.height, right: 0)
       } else {
         content.additionalSafeAreaInsets = .zero
       }

      message += "  window.safeAreaInsets: \(window.safeAreaInsets)\n"
    }
    vc("barViewController", self, &message)
    v("barViewController.barWrapper", barWrapper, &message)
    v("barViewController.buttonBar", bar, &message)
    vc("barViewController.content", content, &message)

    return message

        make.edges.equalToSuperview()
      }

      bar.snp.setLabel("bar")
      view.addSubview(bar)
      bar.snp.makeConstraints { make in
        make.leading.greaterThanOrEqualTo(view.snp.leadingMargin)
        make.leading.equalTo(view.safeAreaLayoutGuide.snp.leading).priority(.high)
        make.trailing.lessThanOrEqualTo(view.snp.trailingMargin)
        make.trailing.equalTo(view.safeAreaLayoutGuide.snp.trailing).priority(.high)
        make.bottom.lessThanOrEqualTo(view.snp.bottomMargin)
        make.bottom.equalTo(view.safeAreaLayoutGuide.snp.bottom).priority(.high)
      }
    }

    override func viewDidLayoutSubviews() {
      super.viewDidLayoutSubviews()
      // Lowering and raising the bar uses a `transform` based on a subview height, so we need to
      // update the transform after layout changes because the height may have changed.

      updatePosition()
    }

