Skip to content

Non-full-screen Container View Controllers #59

Open
@problame

Description

@problame

As documented in the discussion in #57 and #56, CSNotificationView is displayed with the status bar offset in a container view controller.

The key point is: CSNotificationView cannot always rely on the layout guides provided by the view controllers it is presented in. (Details in the comments on #57):

Hence, it has a method that calculates the .length property of what would normally be the topLayoutGuide, taking into account

  • the status bar height
  • if the parent UINavgiationController has its navigation bar visible or not

This behavior breaks in Container View Controllers that are not full-screen and also in modal Form-Style View Controllers on iPad.

The main author (me) does not have the time to fix this bug properly. I would appreciate pull requests that if possible maintain backwards-compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions