alexisakers / BulletinBoard

General-purpose contextual cards for iOS
MIT License
5.38k stars 305 forks source link

seeking suggestions for handling rotation #92

Open eliburke opened 6 years ago

eliburke commented 6 years ago

Some of my taller Bulletin Board items render poorly when the phone is rotated. It happens when the description text is long, and especially when an image is set. Typically, the label is truncated to a single line, the primary button is shrunk to a minimum size, and the secondary button is pushed off screen. It is possible to scroll but it does not work well and is not intuitive.

I'm wondering if or how other folks are dealing with rotation. Turning it off for the app is not an option.

Would it be possible to expose supportedInterfaceOrientations() from the BulletinBoardManager? That seems like the simplest change. I also thought about trying to expose more of the stack view, or constraints on the ui elements, or improving the scrolling behavior.

alexisakers commented 6 years ago

I agree that the experience in compact-sized environments is not optimal. I was thinking about introducing scrolling to the content card, pretty much like Apple does with splash screens with updates (e.g. Notes). I'll starting looking into it, though help would be appreciated :)

eliburke commented 6 years ago

Saw this article on combining UIStackView and UIScrollView. Haven't had a chance to digest it but it is still on my radar.

glisom commented 5 years ago

Is this still something you need help looking into @alexaubry? Would love to take a crack at it.

eliburke commented 5 years ago

@glisom I've never had a chance to try and tackle it, but if you start something I'd be happy to assist / test / review.