Question: I have a Button that I want to bind to the listview's selectedItem count. I cannot find where my error is. The button state is always enabled regardless of testListView.SelectedItems.Count.

Do I need a converter of some sort? If the Count is zero, it should implicitly convert that to a false no ?

```
<ListView x:Name="testListView"  SelectionMode="Multiple" BorderThickness="1">            
            <ListView.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Text="{Binding Name}"/>                       
                    </StackPanel>
                </DataTemplate>
            </ListView.ItemTemplate>
</ListView>

<Button x:Name="Button" Content="TestButton" IsEnabled="False" IsEnabled="{Binding ElementName=testListView, Path=SelectedItems.Count}"/>

```

Answer: 
Swift 1.2 has introduced a native `Set` type, but unlike `NSSet` it doesn't have the `anyObject` method. You have a couple of options. You can use the `first()` method or you can take advantage of the ability to bridge a Swift Set to NSSet -

```
let touch = touches.first() as? UITouch

```

or

```
let touchesSet=touches as NSSet
let touch=touchesSet.anyObject() as? UITouch

```
I've noticed that, too. I'm not sure if this is the actual alternation for the original code these days... I'm sure it isn't. But I've simply changed that code to this:

```
(touches: NSObject, withEvent event: UIEvent)

```

Sorry if that doesn't work for you. It's been working for me perfectly fine.