     private func forceUniformWidth(count: Int, heightMeasureSpec: ALSLayoutParams.MeasureSpec) {
         // Pretend that the linear layout has an exact size.
         let uniformMeasureSpec: ALSLayoutParams.MeasureSpec = (bounds.width, .Exactly)
-        for var i = 0; i < count; i++ {
+        for i in 0..<count {
             guard let child = getVirtualChildAt(i) where !child.layoutHidden else {
                 continue
             }

            
            totalLength = 0
            
            for var i = 0; i < count; i++ {
                guard let child = getVirtualChildAt(i) else {
                    continue
                }

            // We have no limit, so make all weighted views as wide as the largest child.
            // Children will have already been measured once.
            if (useLargestChild && widthSpec != .Exactly) {
                for i in 0..<count {
                    guard let child = getVirtualChildAt(i) where !child.layoutHidden else {
                        continue
                    }
