             }
         }
 
-        static private let ibInspectableMapping: [String: Attribute] = [
+        static private let ibInspectableMapping: [String: TextAttribute] = [
             "unspecified": .unspecified,
             "top": .top,
             "capheight": .capHeight,

        constant = difference
    }

    private func distanceFromTop(of item: AnyObject, with attribute: BonMot.TextAlignmentConstraint.Attribute) -> CGFloat {
        guard let font = font(from: item) else {
            return 0
        }

public class TextAlignmentConstraint: NSLayoutConstraint {

    @objc(BONTextAlignmentConstraintAttribute)
    public enum TextAttribute: Int, CustomStringConvertible {

        case unspecified
        case top
