<commit_before>h1. SVSegmentedControl

SVSegmentedControl is a customizable UI control class that mimics UISegmentedControl but that looks like an UISwitch. Use it anywhere you would a UISegmentedControl.


!http://samvermette.com/files/svsegmentedcontrol.png!

h2. Installation

* Drag the @SVSegmentedControl/SVSegmentedControl@ folder into your project.
* Add the *QuartzCore* framework to your project.

h2. Usage

(see sample Xcode project in @/Demo@)

In its simplest form, this is how you create an SVSegmentedControl instance:

<pre>
segmentedControl = [[SVSegmentedControl alloc] initWithSectionTitles:[NSArray arrayWithObjects:@"Section 1", @"Section 2", nil]];
segmentedControl.delegate = self;

[self.view addSubview:segmentedControl];
[segmentedControl release];
</pre>

You're *highly encouraged* to position it using its @center@ property:

<pre>
segmentedControl.center = CGPointMake(160, 70);
</pre>

h2. Customization

SVSegmentedControl can be customized with the following properties:
<commit_msg>Reduced bot padding of screenshot<commit_after>h1. SVSegmentedControl

SVSegmentedControl is a customizable UI control class that mimics UISegmentedControl but that looks like an UISwitch.


!http://samvermette.com/files/svsegmentedcontrol2.png!

h2. Installation

* Drag the @SVSegmentedControl/SVSegmentedControl@ folder into your project.
* Add the *QuartzCore* framework to your project.

h2. Usage

(see sample Xcode project in @/Demo@)

In its simplest form, this is how you create an SVSegmentedControl instance:

<pre>
segmentedControl = [[SVSegmentedControl alloc] initWithSectionTitles:[NSArray arrayWithObjects:@"Section 1", @"Section 2", nil]];
segmentedControl.delegate = self;

[self.view addSubview:segmentedControl];
[segmentedControl release];
</pre>

You're *highly encouraged* to position it using its @center@ property:

<pre>
segmentedControl.center = CGPointMake(160, 70);
</pre>

h2. Customization

SVSegmentedControl can be customized with the following properties:

{'fraction_non_alphanumeric': 0.08520179372197309, 'fraction_numerical': 0.0114598903836572, 'mean_word_length': 6.045614035087719, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '710871', 'n_tokens_mistral': 633, 'n_tokens_neox': 588, 'n_words': 205}