<?xml version="1.0" encoding="UTF-8"?>
<!--
 IBUINavigationBar.inspector
 Copyright © 2010-2017 Apple Inc. All rights reserved.
 -->

<slice>
    <section visibleKeyPath="inspectedObjectsController.selection.object.ibInspectedShowUIBarAppearance">
        <sliver title="Appearances">
            <property type="boolean" title="Standard" keyPath="inspectedObjectsController.selection.object.ibInspectedHasCustomStandardAppearance"/>
        </sliver>
        <sliver>
            <property type="boolean" title="Compact" keyPath="inspectedObjectsController.selection.object.ibInspectedHasCustomCompactAppearance"/>
        </sliver>
        <sliver>
            <property type="boolean" title="Scroll Edge" keyPath="inspectedObjectsController.selection.object.ibInspectedHasCustomScrollEdgeAppearance"/>
        </sliver>
        <sliver>
            <property type="boolean" title="Compact Scroll Edge" keyPath="inspectedObjectsController.selection.object.ibInspectedHasCustomCompactScrollEdgeAppearance"/>
        </sliver>
    </section>
    <include fileName="IBUINavigationBarAppearance">
        <replaceToken tokenIdentifier="NAVIGATION_BAR_APPEARANCE_KEYPATH" replacementString="standardAppearance"/>
        <replaceToken tokenIdentifier="NAVIGATION_BAR_APPEARANCE_TITLE_PREFIX" replacementString="Standard"/>
        <replaceToken tokenIdentifier="NAVIGATION_BAR_APPEARANCE_VISIBLE_KEYPATH" replacementString="ibInspectedHasCustomStandardAppearance"/>
    </include>
    <include fileName="IBUINavigationBarAppearance">
        <replaceToken tokenIdentifier="NAVIGATION_BAR_APPEARANCE_KEYPATH" replacementString="compactAppearance"/>
        <replaceToken tokenIdentifier="NAVIGATION_BAR_APPEARANCE_TITLE_PREFIX" replacementString="Compact"/>
        <replaceToken tokenIdentifier="NAVIGATION_BAR_APPEARANCE_VISIBLE_KEYPATH" replacementString="ibInspectedHasCustomCompactAppearance"/>
    </include>
    <include fileName="IBUINavigationBarAppearance">
        <replaceToken tokenIdentifier="NAVIGATION_BAR_APPEARANCE_KEYPATH" replacementString="scrollEdgeAppearance"/>
        <replaceToken tokenIdentifier="NAVIGATION_BAR_APPEARANCE_TITLE_PREFIX" replacementString="Scroll Edge"/>
        <replaceToken tokenIdentifier="NAVIGATION_BAR_APPEARANCE_VISIBLE_KEYPATH" replacementString="ibInspectedHasCustomScrollEdgeAppearance"/>
    </include>
    <include fileName="IBUINavigationBarAppearance">
        <replaceToken tokenIdentifier="NAVIGATION_BAR_APPEARANCE_KEYPATH" replacementString="ibCompactScrollEdgeAppearance"/>
        <replaceToken tokenIdentifier="NAVIGATION_BAR_APPEARANCE_TITLE_PREFIX" replacementString="Compact Scroll Edge"/>
        <replaceToken tokenIdentifier="NAVIGATION_BAR_APPEARANCE_VISIBLE_KEYPATH" replacementString="ibInspectedHasCustomCompactScrollEdgeAppearance"/>
    </include>
    <section>
        <sliver title="Style">
            <property type="enumeration" keyPath="inspectedObjectsController.selection.object.barStyle">
                <option-group>
                    <option title="Default" value="0"/>
                    <option title="Black" value="1"/>
                    <option title="Black Translucent (Deprecated)" value="2"/>
                </option-group>
            </property>
            <property type="boolean" title="Translucent" keyPath="inspectedObjectsController.selection.object.translucent"/>
        </sliver>
        <sliver visibleKeyPath="inspectedObjectsController.selection.object.ibInspectedSupportsLargeTitles">
            <property type="boolean" title="Prefers Large Titles" keyPath="inspectedObjectsController.selection.object.ibPrefersLargeTitles"/>
        </sliver>
        <sliver title="Bar Tint">
            <property type="ib-named-color" defaultColorForNil="true" configurableProperty="barTintColor" />
        </sliver>
        <sliver fullWidth="true">
            <property type="ib-named-resource" title="Shadow" placeholder="Shadow Image" resourceType="image" configurableProperty="shadowImage"/>
        </sliver>
        <sliver fullWidth="true">
            <property type="ib-named-resource" title="Back" placeholder="Back Indicator Image" resourceType="image" configurableProperty="backIndicatorImage"/>
        </sliver>
        <sliver fullWidth="true">
            <property type="ib-named-resource" title="Back Mask" placeholder="Back Indicator Mask" resourceType="image" configurableProperty="backIndicatorTransitionMaskImage"/>
        </sliver>
    </section>
    <section title="Title Text Attributes">
        <sliver title="Title Font">
            <property type="font" keyPath="inspectedObjectsController.selection.object.ibInspectedTitleFontDescription" dataSourceKeyPath="inspectedObjectsController.selection.object.targetRuntime.fontDataSource" actionSelector="constrainBoundsOfSelectionToNearestLegalSize"/>
        </sliver>
        <sliver title="Title Color">
            <property type="ib-named-color" defaultColorForNil="true" keyPath="inspectedObjectsController.selection.object.ibInspectedTitleTextColor" />
        </sliver>
        <sliver title="Title Shadow">
            <property type="ib-named-color" defaultColorForNil="true" keyPath="inspectedObjectsController.selection.object.ibInspectedTitleTextShadowColor" />
        </sliver>
        <chooser type="number" keyPath="inspectedObjectsController.selection.object.ibInspectedHasTitleTextShadowOffset">
            <choice title="Default Position" value="0"/>
            <choice title="Custom Offset" value="1">
                <sliver>
                    <property type="number" title="Horizontal" keyPath="inspectedObjectsController.selection.object.ibInspectedTitleTextShadowHorizontalOffset"/>
                    <property type="number" title="Vertical" keyPath="inspectedObjectsController.selection.object.ibInspectedTitleTextShadowVerticalOffset"/>
                </sliver>
            </choice>
        </chooser>
    </section>
    <section title="Large Title Text Attributes" visibleKeyPath="inspectedObjectsController.selection.object.ibInspectedSupportsLargeTitles">
        <sliver title="Title Font">
            <property type="font" keyPath="inspectedObjectsController.selection.object.ibInspectedLargeTitleFontDescription" dataSourceKeyPath="inspectedObjectsController.selection.object.targetRuntime.fontDataSource" actionSelector="constrainBoundsOfSelectionToNearestLegalSize"/>
        </sliver>
        <sliver title="Title Color">
            <property type="ib-named-color" defaultColorForNil="true" keyPath="inspectedObjectsController.selection.object.ibInspectedLargeTitleTextColor" />
        </sliver>
        <sliver title="Title Shadow">
            <property type="ib-named-color" defaultColorForNil="true" keyPath="inspectedObjectsController.selection.object.ibInspectedLargeTitleTextShadowColor" />
        </sliver>
        <chooser type="number" keyPath="inspectedObjectsController.selection.object.ibInspectedHasLargeTitleTextShadowOffset">
            <choice title="Default Position" value="0"/>
            <choice title="Custom Offset" value="1">
                <sliver>
                    <property type="number" title="Horizontal" keyPath="inspectedObjectsController.selection.object.ibInspectedLargeTitleTextShadowHorizontalOffset"/>
                    <property type="number" title="Vertical" keyPath="inspectedObjectsController.selection.object.ibInspectedLargeTitleTextShadowVerticalOffset"/>
                </sliver>
            </choice>
        </chooser>
    </section>
</slice>
