     /// Positions the element on the vertical axis.
     /// - parameter verticalGravity: Specifies where the element should be positioned vertically.
     /// - returns: A `BayaGravityLayout`.
-    func layoutGravitating(to verticalGravity: BayaLayoutOptions.Gravity.Vertical) -> BayaGravityLayout {
+    func layoutGravitating(vertically verticalGravity: BayaLayoutOptions.Gravity.Vertical) -> BayaGravityLayout {
         return BayaGravityLayout(
             element: self,
             horizontalGravity: nil,

    /// Positions the element on the horizontal axis.
    /// - parameter horizontalGravity: Specifies where the element should be positioned horizontally.
    /// - returns: A `BayaGravityLayout`.
    func layoutGravitating(to horizontalGravity: BayaLayoutOptions.Gravity.Horizontal) -> BayaGravityLayout {
        return BayaGravityLayout(
            element: self,
            horizontalGravity: horizontalGravity,

        switch verticalGravity {
        case .none: fallthrough
        case .some(.top): point.y = frame.minY + element.layoutMargins.top
        case .some(.center): point.y = frame.midY - (size.height * 0.5)
        case .some(.bottom): point.y = frame.maxY - size.height - element.layoutMargins.bottom
        }

