Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.

Added extension for UIView constrain center - #21

Merged
dharmik-yml merged 4 commits into
codeandtheory:mainfrom
dharmik-yml:bugfix-CM-868-constrainCenter
Oct 21, 2022
Merged

Added extension for UIView constrain center#21
dharmik-yml merged 4 commits into
codeandtheory:mainfrom
dharmik-yml:bugfix-CM-868-constrainCenter

Conversation

@dharmik-yml

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

Copy link
Copy Markdown
Contributor

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

@mpospese mpospese left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread Sources/YCoreUI/Extensions/UIKit/UIView+constrainCenter.swift Outdated
Comment thread Sources/YCoreUI/Extensions/UIKit/UIView+constrainCenter.swift Outdated
Comment thread Sources/YCoreUI/Extensions/UIKit/UIView+constrainCenter.swift Outdated
Comment thread Sources/YCoreUI/Extensions/UIKit/UIView+constrainCenter.swift
Comment thread Sources/YCoreUI/Extensions/UIKit/UIView+constrainCenter.swift Outdated
@mpospese mpospese linked an issue Oct 21, 2022 that may be closed by this pull request

@mpospese mpospese left a comment

Copy link
Copy Markdown
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add constrainCenter auto layout extension to UIView

2 participants