Skip to content

"isHeaderViewVisible" only hide the subview without resizing the timelinePageViewer  #338

Open
@Jhegs

Description

New Issue Checklist

Issue Description

After to set the property to false, this sentence only hide the dayHeaderView view leaving a white space
(The green background is just for reference)

myView.isHeaderViewVisible = false

Screen Shot 2022-06-07 at 17 30 45

Result I am trying to achieve

The possible fix that needs a change in the library.

I did a small change on the file DayView (inside CalendarKit) project removing the else

// Before
override public func layoutSubviews() {
    super.layoutSubviews()
    if #available(iOS 11, *) {} else {
        ...
    }
  }

// After
override public func layoutSubviews() {
    super.layoutSubviews()
    if #available(iOS 11, *) { // Removing the else case
        ...
    }
  }

and the frame is recalculated.

Screen Shot 2022-06-07 at 17 36 49

Final Note

To be sure that I'm not doing something wrong in my project I did the same change trying with the CalendarKitDemo project inside this repository and the bug is present.

Screen Shot 2022-06-07 at 18 14 58

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions