Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made padding from the edges customizable #12

Merged
merged 3 commits into from
Apr 26, 2020
Merged

Made padding from the edges customizable #12

merged 3 commits into from
Apr 26, 2020

Conversation

jordanhbuiltbyhq
Copy link
Contributor

We wanted a bit more padding than 15 馃槈

@jordanhbuiltbyhq jordanhbuiltbyhq changed the title Made padding from the edge customizable Made padding from the edges customizable Apr 22, 2020
@Kofktu Kofktu changed the base branch from master to develop April 22, 2020 23:15
@@ -102,6 +102,8 @@ class PIPXibViewController: UIViewController, PIPUsable {

var initialState: PIPState { return .full }
var initialPosition: PIPPosition { return .topRight }
var verticalEdgePadding: CGFloat { return 25 }
var horizontalEdgePadding: CGFloat { return 10 }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jordanhbuiltbyhq
How about using UIEdgeInsets rather than horizontal/vertical padding values?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kofktu Done!

@Kofktu Kofktu merged commit 31348a8 into Kofktu:develop Apr 26, 2020
@jordanhbuiltbyhq jordanhbuiltbyhq deleted the custom-padding branch April 28, 2020 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants