Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

CRToastPresentationType Not Being Respected #23

Closed
cruffenach opened this Issue · 4 comments

2 participants

@cruffenach
Owner

CRToastPresentationTypePush isn't respected when kCRToastUnderStatusBarKey is YES.

@Ashton-W
Collaborator

Just noticed this too, I'll have a look.

@Ashton-W
Collaborator

You can remove CRToast.m#L779 but then you see the status bar in the push animation.

I don't know how to remove the statusbar from [[UIScreen mainScreen] snapshotViewAfterScreenUpdates:YES]]. I tried changing the frame of that view but it leaves a gap between the notification view and the navbar and breaks the effect.

Ideally the animation would be changed to start moving the navbar snapshot when the notification view hits it. Don't know how feasible that is.

@Ashton-W
Collaborator

[window drawViewHierarchyInRect:rect afterScreenUpdates:YES]; will draw the Navigation Bar and a blank status bar area, so it appears perfect for what we needed.

@Ashton-W
Collaborator

Also thanks to @manolosavi, this fix comes from a discussion we had about another screenshot bug.

@cruffenach cruffenach closed this in c6f8c80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.