Skip to content

Added extension for UIView constrain center #21

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

dharmik-yml
Copy link
Contributor

@dharmik-yml dharmik-yml commented Oct 21, 2022

Introduction

Task is to provide easy way to give center constraint to UIView.

Purpose

Added three extra methods in UIView extension to easily deal with center constrain.

Scope

Added new extension file with supporting test case file.

📈 Coverage

Code

Screenshot 2022-10-21 at 1 19 49 PM

Documentation

Screenshot 2022-10-21 at 1 19 20 PM

SwiftLint

Screenshot 2022-10-21 at 1 19 35 PM

@dharmik-yml dharmik-yml marked this pull request as ready for review October 21, 2022 07:59
Copy link
Contributor

@mpospese mpospese left a comment

Choose a reason for hiding this comment

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

Looks good. Just need to mark some things public and update comments.

@mpospese mpospese linked an issue Oct 21, 2022 that may be closed by this pull request
Copy link
Contributor

@mpospese mpospese left a comment

Choose a reason for hiding this comment

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

Great stuff! 🙏

@dharmik-yml dharmik-yml merged commit 3ae076c into codeandtheory:main Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add constrainCenter auto layout extension to UIView
2 participants