wordpress-mobile / MediaPicker-iOS

WPMediaPicker is an iOS controller that allows capture and picking of media assets.
GNU General Public License v2.0
110 stars 37 forks source link

Fix: incorrect placement of empty view in picker #387

Closed hassaanelgarem closed 2 years ago

hassaanelgarem commented 2 years ago

Fixes #386

Description

Modifies the positioning of the empty view so that it's vertically centered and fills the whole view.

No Media No Search Results
media results

Testing instructions

This can be tested using https://github.com/wordpress-mobile/WordPress-iOS/pull/18471

  1. Run the app
  2. Switch to a site that has no media uploaded
  3. Open Media
  4. Make sure that the custom empty view is displayed correctly
  5. Upload an image
  6. Type in anything in the search bar till no results match
  7. Make sure that the no results label is displayed correctly