# Bunifu IOS Switch (1.5.3)

Bunifu IOSwitch is a simple stylish switch control that is similar to a CheckBox. In UWP there is a control named switch with the same functionality as Bunifi IOSwitch. You can add it to your design at design time and at run time.&#x20;

## Adding control at Design Time

Simply locate Bunifu IOS Switch in your toolbox and drag it to your form&#x20;

![](https://downloads.intercomcdn.com/i/o/72975533/a71f6f9900dd7c0e23b222a9/1-5\[1].png)

## Adding control at Runtime

To add Bunifu IOS Switch control at run time we will simply use the `Load event handler` as shown in the code below:&#x20;

### **Code**

{% tabs %}
{% tab title="C#" %}

```

var bunifuSwitch = new Bunifu.Framework.UI.BunifuOSSwitch();
this.Controls.Add(bunifuSwitch);

```

{% endtab %}

{% tab title="VB.NET" %}

```

Dim bunifuSwitch As New Bunifu.Framework.UI.BunifuOSSwitch
Controls.Add(bunifuSwitch)

```

{% endtab %}
{% endtabs %}

After running our application you should see something like this

![](https://downloads.intercomcdn.com/i/o/72975815/0ed087be8f19d5dbb75f3fc3/2-5\[1].png)

## Properties

### **`OnColor`**

This property allows you to set the color of the switch when its state is **ON**

### **`OffColor`**

This property allows you to set the color of the switch when its state is **OFF**

That's it!

We hope you will enjoy using Bunifu IOS Switch and that it will help you create better user experience for your users.&#x20;

Should you have feedback or suggestions please send us via chat on the bottom right corner of the screen.
