<commit_before><p align="center">
  <img width="420" height="240" src="assets/logo.png"/>
</p>

[![CocoaPods](https://cocoapod-badges.herokuapp.com/v/SubtleVolume/badge.svg)](http://cocoapods.org/?q=subtlevolume)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
![Swift 2.0](https://img.shields.io/badge/swift-2.0-orange.svg)
[![codebeat](https://codebeat.co/badges/4bc9d591-39a9-4f3f-a6cd-775c68568368)](https://codebeat.co/projects/github-com-andreamazz-subtlevolume)

Replace the volume popup with a more subtle way to display the volume when the user changes it with the volume rocker.

<p align="center">
  <img width="640" height="480" src="assets/screenshot.png"/>
</p>

#Why and how
The iOS default popover showing the volume status that appears when the user clicks the volume rocker is a big obtrusive glossy view that covers the content shown. This library offers a way to show a more subtle indicator.  
To make sure that the popover is not shown there are two conditions that need to be satisfied:  
- An `AVAudioSession` needs to be active
- An `MPVolumeView` needs to be in the current view's hierarchy, and its alpha needs to be greater than 0

Once a `SubtleVolume` is added to your view, an audio session is automatically started, and the view's alpha is set to `0.0001` in the hidden state.

#Getting Started
Create an instance of `SubtleVolume` with one of its convenience initializers, and set its position (you can either set the frame or let autolayout handle it):
```swift
let volume = SubtleVolume(style: .Plain)
volume.frame = CGRect(x: 0, y: 10, width: view.frame.size.width, height: 4)
```

Set the barTintColor property:
```swift
volume.barTintColor = .redColor()
```

Set the animation type if needed (no animation will result in the indicator being always visible):
```swift
volume.animation = .SlideDown
```
<commit_msg>Delete height of images so thy look good on mobile<commit_after><p align="center">
  <img width="420" src="assets/logo.png"/>
</p>

[![CocoaPods](https://cocoapod-badges.herokuapp.com/v/SubtleVolume/badge.svg)](http://cocoapods.org/?q=subtlevolume)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
![Swift 2.0](https://img.shields.io/badge/swift-2.0-orange.svg)
[![codebeat](https://codebeat.co/badges/4bc9d591-39a9-4f3f-a6cd-775c68568368)](https://codebeat.co/projects/github-com-andreamazz-subtlevolume)

Replace the volume popup with a more subtle way to display the volume when the user changes it with the volume rocker.

<p align="center">
  <img width="640" src="assets/screenshot.png"/>
</p>

#Why and how
The iOS default popover showing the volume status that appears when the user clicks the volume rocker is a big obtrusive glossy view that covers the content shown. This library offers a way to show a more subtle indicator.  
To make sure that the popover is not shown there are two conditions that need to be satisfied:  
- An `AVAudioSession` needs to be active
- An `MPVolumeView` needs to be in the current view's hierarchy, and its alpha needs to be greater than 0

Once a `SubtleVolume` is added to your view, an audio session is automatically started, and the view's alpha is set to `0.0001` in the hidden state.

#Getting Started
Create an instance of `SubtleVolume` with one of its convenience initializers, and set its position (you can either set the frame or let autolayout handle it):
```swift
let volume = SubtleVolume(style: .Plain)
volume.frame = CGRect(x: 0, y: 10, width: view.frame.size.width, height: 4)
```

Set the barTintColor property:
```swift
volume.barTintColor = .redColor()
```

Set the animation type if needed (no animation will result in the indicator being always visible):
```swift
volume.animation = .SlideDown
```

{'fraction_non_alphanumeric': 0.11319783895034731, 'fraction_numerical': 0.024697710316439414, 'mean_word_length': 4.908814589665654, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 12, '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': '6375816', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1201, 'n_words': 449}