Skip to content

Commit

Permalink
delete the _
Browse files Browse the repository at this point in the history
  • Loading branch information
iDurian committed Sep 18, 2016
1 parent 599124c commit 8852cfe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Demo/FacebookProfileExampleViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ class TwitterProfileExampleViewController: UIViewController {
bannerImageView.anchorAndFillEdge(.top, xPad: 0, yPad: 0, otherSize: bannerHeight)
bannerMaskView.fillSuperview()
avatarImageView.anchorInCorner(.bottomLeft, xPad: 15, yPad: 15, width: avatarSize, height: avatarSize)
nameLabel.alignAndFillWidth(.toTheRightCentered, relativeTo: avatarImageView, padding: 15, height: 120)
nameLabel.alignAndFillWidth(align: .toTheRightCentered, relativeTo: avatarImageView, padding: 15, height: 120)
cameraButton.anchorInCorner(.bottomRight, xPad: 10, yPad: 7, width: 28, height: 28)
buttonContainerView.alignAndFillWidth(.underCentered, relativeTo: bannerImageView, padding: 0, height: 62)
buttonContainerView.alignAndFillWidth(align: .underCentered, relativeTo: bannerImageView, padding: 0, height: 62)
buttonContainerView.groupAndFill(.horizontal, views: [postButton, updateInfoButton, activityLogButton, moreButton], padding: 10)
buttonContainerView2.alignAndFillWidth(.underCentered, relativeTo: buttonContainerView, padding: 0, height: 120)
buttonContainerView2.alignAndFillWidth(align: .underCentered, relativeTo: buttonContainerView, padding: 0, height: 120)
buttonContainerView2.groupAndFill(.horizontal, views: [aboutView, photosView, friendsView], padding: 8)
}
}
Expand Down
6 changes: 3 additions & 3 deletions Demo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ class ViewController: UIViewController {

func layoutFrames() {
anchorView.groupInCorner(.vertical, views: [view11, view12, view13], inCorner: .topRight, padding: 10, width: 40, height: 40)
view1.alignAndFillWidth(.toTheRightMatchingTop, relativeTo: anchorView, padding: 10, height: 50)
view1.alignAndFillWidth(align: .toTheRightMatchingTop, relativeTo: anchorView, padding: 10, height: 50)
containerView.groupAndAlign(.horizontal, andAlign: .underMatchingLeft, views: [view2, view3, view4], relativeTo: view1, padding: 10, width: 60, height: 60)
view5.alignAndFillWidth(.toTheRightMatchingTop, relativeTo: view4, padding: 10, height: 60)
view5.alignAndFillWidth(align: .toTheRightMatchingTop, relativeTo: view4, padding: 10, height: 60)
view6.alignAndFill(.underMatchingLeft, relativeTo: view2, padding: 10)
view7.alignAndFillHeight(.aboveMatchingRight, relativeTo: view1, padding: 10, width: 60)
view8.alignAndFillWidth(.toTheLeftMatchingTop, relativeTo: view7, padding: 10, height: 70)
view8.alignAndFillWidth(align: .toTheLeftMatchingTop, relativeTo: view7, padding: 10, height: 70)
view9.alignBetweenVertical(.underMatchingLeft, primaryView: view8, secondaryView: anchorView, padding: 10, width: 100)
view10.alignBetweenHorizontal(.toTheRightMatchingTop, primaryView: view9, secondaryView: view7, padding: 10, height: view9.height)
view14.anchorInCorner(.bottomLeft, xPad: 10, yPad: 10, width: 100, height: 100)
Expand Down
4 changes: 2 additions & 2 deletions Source/NeonAlignable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public extension Alignable {
/// match the specified `Align`. For example, if you specify `.ToTheRightMatchingTop` and provide an offset value of `5`, the
/// view's y origin will be lower than the sibling view's y origin by 5 points.
///
public func alignAndFillWidth(_ align: Align, relativeTo sibling: Frameable, padding: CGFloat, height: CGFloat, offset: CGFloat = 0) {
public func alignAndFillWidth(align: Align, relativeTo sibling: Frameable, padding: CGFloat, height: CGFloat, offset: CGFloat = 0) {
let superviewWidth = superFrame.width
var xOrigin : CGFloat = 0.0
var yOrigin : CGFloat = 0.0
Expand Down Expand Up @@ -201,7 +201,7 @@ public extension Alignable {

if height == AutoHeight {
self.setDimensionAutomatically()
self.alignAndFillWidth(align, relativeTo: sibling, padding: padding, height: self.height, offset: offset)
self.alignAndFillWidth(align: align, relativeTo: sibling, padding: padding, height: self.height, offset: offset)
}
}

Expand Down

0 comments on commit 8852cfe

Please sign in to comment.