Skip to content

UIViews with transparent backgroundColor #10

@fabiocaccamo

Description

@fabiocaccamo

If I use this style: (MPFoldStyleHorizontal | MPFoldStyleUnfold | MPFoldStyleCubic) and 'toView' has a transparent background, the 'fromView' should not be visible (after it has been flipped) behind the 'toView'.

I think a possible solution could be stop to render 'fromView' if it has been flipped: (right < left || top < bottom)


if I use this style: (MPFoldStyleHorizontal | MPFoldStyleUnfold) and 'fromView' has a transparent background, a black background is added to 'fromView' when the transition starts.

This problem is in: [MPAnimation renderImageFromView:...] and can be fixed forcing a non-opaque background if the view.backgroundColor == UIColor clearColor ... (maybe there's a better solution):

UIGraphicsBeginImageContextWithOptions(imageSizeWithBorder, FALSE, 0);


Thanks for this great library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions