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

Already on GitHub? Sign in to your account

Added constrainSize extension #17

Merged
merged 4 commits into from
Oct 20, 2022

Conversation

dharmik-yml
Copy link
Contributor

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

Introduction

Task is to provide easy way to give width and height constraint to UIView.

Purpose

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

Scope

Added new extension file with with three methods and supporting test case file.

Also update the iPhone version in ".jazzy.yaml" file for latest support.

Code

Screenshot 2022-10-19 at 6 37 38 PM

Documentation

Screenshot 2022-10-19 at 6 38 00 PM

SwiftLint

Screenshot 2022-10-20 at 11 36 22 AM

@dharmik-yml dharmik-yml marked this pull request as ready for review October 19, 2022 13:08
@mpospese mpospese linked an issue Oct 19, 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.

Looking good! Mostly just comment fixes plus one line of whitespace that's causing a SwiftLint warning.

@mpospese mpospese merged commit e44ddf9 into codeandtheory:main Oct 20, 2022
@dharmik-yml dharmik-yml deleted the bugfix-CM-867-constrainSize branch October 20, 2022 10:03
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 constrainSize auto layout extension to UIView
2 participants