0

Can't find name of this view. It is a search controller that can be dragged from bottom to top. It's used in Apple Maps and Apple Music.

screenshot of the view

pkamb
  • 33,281
  • 23
  • 160
  • 191
Mark Darry
  • 27
  • 7
  • This is not UI component, this is clear button in UISearchBar – iVarun Dec 18 '17 at 09:36
  • Please note that your image is misleading... You have highlighted the close button, but your question is about the "sheet" presented from the bottom (?) – Alladinian Dec 18 '17 at 09:37
  • You can create similar UI with UIView or you can also take seperate UIViewController. This 3rd party library will help you to create similar UI. https://github.com/52inc/Pulley – iVarun Dec 18 '17 at 09:41
  • @Alladinian Sorry for that, I will change image – Mark Darry Dec 18 '17 at 09:43
  • Possible duplicate of [How can I mimic the bottom sheet from the Maps app?](https://stackoverflow.com/questions/37967555/how-can-i-mimic-the-bottom-sheet-from-the-maps-app) – pkamb Sep 05 '21 at 03:20

1 Answers1

1

Maps uses a private UI component to achieve this draggable view, so it's not available for third-party apps that are planned to be distributed through the App Store.

As suggested by @ivarun, you can check out Pulley to achieve a similar result in your application. The library uses a custom UIViewController subclass named PulleyViewController, which hosts the drawer's content.

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223