Skip to content

Question: Why using parentView frame instead of UIScreen frame ? #4

@Aximem

Description

@Aximem

Hi,

Thanks for your pod, very usefull why are you using parentView frame instead of UIScreen frame ?

I means instead of :
imageV.frame = CGRect(x: 0, y: 0, width: (parentView?.frame.width)!, height: (parentView?.frame.width)!)
imageV.center = (parentView?.center)!

Why not doing this ? :
imageV.frame = CGRect(x: 0, y: 0, width: self.bgView.frame.width, height: self.bgView.frame.width)
imageV.center = self.bgView.center

I forked your repo but maybe you did this on purpose, can you tell me in which case this could lead to issues ?

TY

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