     public func layout(_ objects: [Any]) -> [UIView] {
         var previousMargin: CGFloat?
         var previousFlexibleMargin: SteviaFlexibleMargin?
+        
         for (i, o) in objects.enumerated() {
             
-            switch o {
-            case let v as UIView:
+            func viewLogic(_ v: UIView) {
                 if let pm = previousMargin {
                     if i == 1 {
                         v.top(pm) // only if first view

import UIKit

public extension UIView {

    /**
    
     Lays out the views on both axis.
     
     Note that this is not needed for Horizontal only layouts.

            case _ as String:() //Do nothin' !
            case let a as [UIView]:
                align(horizontally: a)
                let v = a.first!
                viewLogic(v)
            default: ()
            }
        }
