Skip to content

Commit

Permalink
Fix typo in embedding.
Browse files Browse the repository at this point in the history
  • Loading branch information
srdanrasic committed Mar 20, 2018
1 parent 4b388d7 commit 40f2bd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/Layout/Layoutless.swift
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,13 @@ extension LayoutProtocol where LayoutNode: Anchorable {

extension LayoutProtocol {

/// Embed the node in the given view and return the layout that has the given view as a root node.
@available(*, deprecated, renamed: "embedding(in:)")
public func emedding<View: UIView>(in view: View) -> Layout<View> {
return embedding(in: view)
}

/// Embed the node in the given view and return the layout that has the given view as a root node.
public func embedding<View: UIView>(in view: View) -> Layout<View> {
return Layout {
self.makeLayoutNode().layout(in: view)
return view
Expand Down

0 comments on commit 40f2bd9

Please sign in to comment.