Mark `ui` package as deprecated
Make view.isAttached private again