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

    ///   - attr2: The attribute of the view for the right side of the constraint equation.
    /// - Returns: A constraint object relating the two provided views with the
    ///            specified relation and attributes.
    public static func with(item view1: AnyObject, attribute attr1: BonMot.TextAlignmentConstraint.Attribute, relatedBy relation: NSLayoutRelation, toItem view2: AnyObject, attribute attr2: BonMot.TextAlignmentConstraint.Attribute) -> TextAlignmentConstraint {
        let constraint = TextAlignmentConstraint(
            item: view1,
            attribute: attr1.layoutAttribute,

        constant = difference
    }

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