Skip to content

Conversation

lucdion
Copy link
Member

@lucdion lucdion commented Jun 8, 2017

Previously the size specified was applied only if both the width and height wasn’t specified. Now PinLayout will apply them individually, so if the width has been specified yet, the size’s width will be applied, else a warning will be displayed that indicate that the width won’t be applied. Same thing for the height.

Plus:

  • Doesn’t display a warning anymore if the new specified width or height value is equal to the currently set value. This is coherent with other methods (top, left, hCenter, ….)
  • Clean up size(...) methods source code

@codecov-io
Copy link

Codecov Report

Merging #41 into master will increase coverage by 0.18%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #41      +/-   ##
==========================================
+ Coverage   95.38%   95.57%   +0.18%     
==========================================
  Files          14       14              
  Lines        2946     2936      -10     
==========================================
- Hits         2810     2806       -4     
+ Misses        136      130       -6
Impacted Files Coverage Δ
Tests/PinEdgesSpec.swift 100% <100%> (ø) ⬆️
Tests/AdjustSizeSpec.swift 100% <100%> (ø) ⬆️
Sources/PinLayoutImpl.swift 85.28% <100%> (+0.39%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5bf136...67f8b57. Read the comment docs.

Previously the size specified was applied only if both the width and height wasn’t specified. Now PinLayout will apply them individually, so if the width has been specified yet, the size’s width will be applied, else a warning will be displayed that indicate that the width won’t be applied. Same thing for the height.

Plus:
* Doesn’t display a warning anymore if the new specified width or height value is equal to the currently set value. This is coherent with other methods (top, left, hCenter, ….)
@lucdion lucdion force-pushed the update_size_method_codes branch from 67f8b57 to f57ae66 Compare June 9, 2017 02:09
@lucdion lucdion merged commit 268b5be into master Jun 9, 2017
@lucdion lucdion deleted the update_size_method_codes branch June 9, 2017 02:17
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.

2 participants