         let range = (min: Int(slider.leftValue), max: Int(slider.rightValue))
         currentSettings = currentSettings.settingsWithRange(range)
     }
+
+    enum SliderPriorities: UILayoutPriority {
+        case StayWithinFrame = 475
+        case DoNotOverlap = 450
+        case StayCenteredOverThumb = 425
+    }
+
+    // Sets priority of the constraint, using AnyObject! because of FLKAutoLayout
+    func setConstraintPriority(priority: SliderPriorities)(constraint: AnyObject!) {
+        (constraint as? NSLayoutConstraint)?.priority = priority.rawValue
+    }
 }
 
 private typealias TableView = AuctionRefineViewController

        }
    }
}

// Decreates priority of the constraint, using AnyObject! because of FLKAutoLayout
private func setConstraintPriority(priority: UILayoutPriority)(constraint: AnyObject!) {
    (constraint as? NSLayoutConstraint)?.priority = priority
}

            labelContainer.addSubview(minLabel)

            minLabel.alignCenterYWithView(labelContainer, predicate: "0")
            minLabel.alignCenterXWithView(slider.leftThumbView, predicate: "0").forEach(setConstraintPriority(.StayCenteredOverThumb))
            minLabel.alignAttribute(.Leading, toAttribute: .Leading, ofView: labelContainer, predicate: ">= 0").forEach(setConstraintPriority(.StayWithinFrame))

            let maxLabel = ARItalicsSerifLabel().then {
                $0.font = UIFont.serifFontWithSize(15)
