Lnpopupcontroller: Popup progress bar doesn't show up. Even in sample app. iOS 11.2

Created on 30 Mar 2018  路  3Comments  路  Source: LeoNatan/LNPopupController

Description


I'm running the sample app in iOS 11.2 in the Simulator and in my iPhone 7 with iOS 11.2.6 and the progress bar for the popup doesn't show up. Not sure if I'm doing something wrong. I'm assuming your supposed to set popupItem.progress correct?

Steps to Reproduce


1) Download the repo
2) Compile and run the sample app
3) Click on (Demo App) Apple Music
4) Click on any table cell, the popup should come up, but no progress bar on the popup
5) If you tap on the popup you'll notice that the progress bar in "music player" is progressing, but nothing in the popup

Device, OS and Xcode Versions


Simulator iOS 11.2
iPhone 7 iOS 11.2.6

question

Most helpful comment

Indeed, the popup bar does not belong to the content view controller, it belongs to the presenting view controller.

All 3 comments

Hello,

As with Apple's iOS 10 and 11 apps, the progress bar is hidden by default. Set the progressViewStyle property to have it show up. https://github.com/LeoNatan/LNPopupController/blob/d0abfc4a2febe8358e6dcfbf36b3167bb87193b8/LNPopupController/LNPopupController/LNPopupBar.h#L124

Thanks. Looking through your sample code I found that I was setting the progressViewStyle on the wrong view controller.
For anyone else that may have this issue you have to set the progressViewStyle in the presenting view controller not the contentViewController
For example:
tabBarController?.popupBar.progressViewStyle = .bottom

Indeed, the popup bar does not belong to the content view controller, it belongs to the presenting view controller.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

user3587412 picture user3587412  路  4Comments

RajChanchal picture RajChanchal  路  3Comments

johnswifttt picture johnswifttt  路  6Comments

iKushalManiyar picture iKushalManiyar  路  4Comments

nhatduong picture nhatduong  路  7Comments