Skip to content

Commit

Permalink
rename autolayoutFormat -> northLayoutFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
banjun committed May 9, 2015
1 parent 758ccaa commit 588f7fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Classes/NorthLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@


public extension UXView {
public func autolayoutFormat(metrics: [String:CGFloat], _ views: [String:UXView]) -> String -> Void {
return self.autolayoutFormat(metrics, views, options: nil)
public func northLayoutFormat(metrics: [String:CGFloat], _ views: [String:UXView]) -> String -> Void {
return self.northLayoutFormat(metrics, views, options: nil)
}

public func autolayoutFormat(metrics: [String:CGFloat], _ views: [String:UXView], options: NSLayoutFormatOptions) -> String -> Void {
public func northLayoutFormat(metrics: [String:CGFloat], _ views: [String:UXView], options: NSLayoutFormatOptions) -> String -> Void {
for v in views.values {
#if os(iOS)
let isAlreadySubview = v.isDescendantOfView(self)
Expand Down
2 changes: 1 addition & 1 deletion Example/NorthLayout-ios/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ViewController: UIViewController {
textLabel.text = "Some text label"
textLabel.backgroundColor = UIColor.lightGrayColor()

let autolayout = view.autolayoutFormat(["p": 8], [
let autolayout = view.northLayoutFormat(["p": 8], [
"name": nameLabel,
"text": textLabel,
])
Expand Down
2 changes: 1 addition & 1 deletion Example/NorthLayout-osx/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
textLabel.stringValue = "Some text label"
textLabel.backgroundColor = NSColor.lightGrayColor()

let autolayout = view.autolayoutFormat(["p": 8], [
let autolayout = view.northLayoutFormat(["p": 8], [
"name": nameLabel,
"text": textLabel,
])
Expand Down

0 comments on commit 588f7fe

Please sign in to comment.