<?xml version="1.0" encoding="UTF-8"?>
<!--
 IBUITextField.inspector
 Copyright © 2010-2023 Apple Inc. All rights reserved.
 -->
<slice>
    <section>
        <chooser title="Text" type="number" keyPath="inspectedObjectsController.selection.object.ibInspectedUsesAttributedText">
            <choice title="Plain" value="0">
                <sliver>
                    <property type="string" placeholder="Text" keyPath="inspectedObjectsController.selection.object.ibInspectedText" />
                </sliver>
                <sliver title="Color">
                    <property type="ib-named-color" configurableProperty="textColor" defaultColorKeyPath="inspectedObjectsController.selection.object.defaultTextColor" />
                </sliver>
                <sliver title="Font">
                    <property type="font" configurableProperty="fontDescription" dataSourceKeyPath="inspectedObjectsController.selection.object.targetRuntime.fontDataSource" actionSelector="constrainBoundsOfSelectionToNearestLegalSize"/>
                </sliver>
                <sliver title="Dynamic Type">
                    <property type="boolean" title="Automatically Adjusts Font" keyPath="inspectedObjectsController.selection.object.adjustsFontForContentSizeCategory"/>
                </sliver>
                <sliver title="Alignment">
                    <property type="enumeration" keyPath="inspectedObjectsController.selection.object.textAlignment">
                        <option-group>
                            <option value="0" image="IBAlignTextLeftTemplate" title="Left" />
                            <option value="1" image="IBAlignTextCenterTemplate" title="Center" />
                            <option value="2" image="IBAlignTextRightTemplate" title="Right" />
                            <option value="3" image="IBAlignTextJustifiedTemplate" title="Justified" />
                            <option value="4" image="IBAlignTextNaturalTemplate" title="Natural" />
                        </option-group>
                    </property>
                </sliver>
            </choice>
            <choice title="Attributed" value="1">
                <sliver>
                    <property type="string" configurableProperty="attributedText" placeholder="Text" attributed="true"/>
                </sliver>
                <sliver>
                    <property type="boolean" title="Allows Editing Attributes" keyPath="inspectedObjectsController.selection.object.allowsEditingTextAttributes"/>
                </sliver>
            </choice>
        </chooser>
        <sliver title="Placeholder">
            <property type="string" placeholder="Placeholder Text" keyPath="inspectedObjectsController.selection.object.placeholder" allowsNilValues="YES"/>
        </sliver>
    </section>
    <section>
        <sliver fullWidth="true">
            <property type="ib-named-resource" title="Background" placeholder="Background Image" configurableProperty="background" resourceType="image" />
        </sliver>
        <sliver fullWidth="true">
            <property type="ib-named-resource" title="Disabled" placeholder="Disabled Background Image" configurableProperty="disabledBackground" resourceType="image" />
        </sliver>
    </section>
    <section>
        <sliver title="Border Style">
            <property type="enumeration" actionSelector="constrainBoundsOfSelectionToNearestLegalSize" keyPath="inspectedObjectsController.selection.object.borderStyle">
                <option-group>
                    <option value="0" image="IBBorderNoneTemplate"  title="None" />
                    <option value="1" image="IBBorderLineTemplate"  title="Line" />
                    <option value="2" image="IBBorderBezelTemplate" title="Bezel" />
                    <option value="3" image="IBBorderRoundTemplate" title="Round" />
                </option-group>
            </property>
        </sliver>
    </section>
    <section>
        <sliver title="Clear Button">
            <property type="enumeration" keyPath="inspectedObjectsController.selection.object.clearButtonMode">
                <option-group>
                    <option title="Never appears" value="0" />
                    <option title="Appears while editing" value="1" />
                    <option title="Appears unless editing" value="2" />
                    <option title="Is always visible" value="3" />
                </option-group>
            </property>
            <property type="boolean" title="Clear when editing begins" keyPath="inspectedObjectsController.selection.object.clearsOnBeginEditing" />
        </sliver>                
    </section>
    <section>
        <sliver title="Min Font Size">
            <property type="number" minimum="0" keyPath="inspectedObjectsController.selection.object.minimumFontSize"/>
            <property type="boolean" title="Adjust to Fit" keyPath="inspectedObjectsController.selection.object.adjustsFontSizeToFitWidth"/>
        </sliver>
    </section>
    <section>
        <sliver title="Sizing Rule">
            <property type="enumeration" keyPath="inspectedObjectsController.selection.object.sizingRule">
                <option-group>
                    <option title="Typographic" value="0" />
                    <option title="Oversize" value="1" />
                </option-group>
            </property>
        </sliver>
    </section>
    <include fileName="IBUITextInputTraits"/>
</slice>
