{namespace vh=Newland\NeosViewHelpers\ViewHelpers}
{namespace components=Newland\NeosCommon\ViewHelpers}

<div class="tb-switch-wrapper">
    <label for="tb-splitscreen-toggle-map" class="tb-switch__label tb-switch__label--before">
        <f:translate id="action.toggleMap" source="Views/Filter" package="Newland.NeosFiltering" />
    </label>
    <div class="tb-switch">
        <input
            type="checkbox"
            data-toubiz-results.splitscreen.toggle-input
            class="tb-switch__input"
            id="tb-splitscreen-toggle-map"
            role="switch"
            aria-checked="false"
            onclick="" />
        <f:comment>
            Onclick attribute is necessary for iOS devices.
            See also: https://blog.k-webs.ch/2016-05-hover-auf-ios-devices.html
        </f:comment>

        <div class="tb-switch__background" aria-hidden="true">
            <div class="tb-switch__knob"></div>
        </div>
    </div>
</div>
