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

Previously PinLayout was setting the view's frame. This was breaking the view's tranform #107

Merged
merged 1 commit into from Dec 22, 2017

Conversation

lucdion
Copy link
Member

@lucdion lucdion commented Dec 22, 2017

By setting the view's center and bounds we set the frame of the non-transformed view, and this keeps the view's transform.
So view's transforms won't be affected/altered anymore by PinLayout.

For people not using transforms, this should be a non-breaking change. If someone is using transforms with PinLayout, this may change the behavior, although I think this will produce the expected results (ie, transforms not being affected/altered by layout).

…the view's tranform.

By setting the view's center and bounds we set the frame of the non-transformed view, and this keeps the view's transform.
So view's transforms won't be affected/altered anymore by PinLayout.

For people not using transforms, this should be a non-breaking change. If someone is using transforms with PinLayout, this may change the behaviour, although I think this will produce the expected results (ie, transforms not being affected/altered by layout).
@codecov-io
Copy link

codecov-io commented Dec 22, 2017

Codecov Report

Merging #107 into master will increase coverage by 1%.
The diff coverage is 98.3%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #107     +/-   ##
=========================================
+ Coverage   89.36%   90.37%     +1%     
=========================================
  Files          33       34      +1     
  Lines        7554     6232   -1322     
  Branches      440        0    -440     
=========================================
- Hits         6751     5632   -1119     
+ Misses        796      600    -196     
+ Partials        7        0      -7
Impacted Files Coverage Δ
Sources/Impl/Coordinates.swift 100% <100%> (ø) ⬆️
Tests/TransformSpec.swift 100% <100%> (ø)
Sources/Impl/PinLayoutImpl+Layouting.swift 88.88% <100%> (-0.81%) ⬇️
Tests/BasicView.swift 80.64% <50%> (+3.5%) ⬆️
Tests/RectNimbleMatcher.swift 50% <0%> (-10%) ⬇️
Sources/Impl/PinLayoutImpl.swift 82.87% <0%> (-0.57%) ⬇️
Sources/ObjectiveC/PinLayoutObjCImpl.swift 3.25% <0%> (-0.13%) ⬇️
Tests/WarningSpec.swift 100% <0%> (ø) ⬆️
Tests/AspectRatioTests.swift 100% <0%> (ø) ⬆️
... and 27 more

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 8d428be...9de5363. Read the comment docs.

@lucdion lucdion merged commit c36b2f6 into master Dec 22, 2017
@lucdion lucdion deleted the keeps_uiview_transforms branch December 22, 2017 12:57
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