Skip to content

Commit 3c26b05

Browse files
committed
Fix typo. Swift 5 version
1 parent 9a68142 commit 3c26b05

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

.swift-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2
1+
5.0

Demo/Demo.xcodeproj/project.pbxproj

+7-6
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@
260260
developmentRegion = English;
261261
hasScannedForEncodings = 0;
262262
knownRegions = (
263+
English,
263264
en,
264265
Base,
265266
);
@@ -489,7 +490,7 @@
489490
ONLY_ACTIVE_ARCH = YES;
490491
SDKROOT = iphoneos;
491492
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
492-
SWIFT_VERSION = 4.2;
493+
SWIFT_VERSION = 5.0;
493494
};
494495
name = Debug;
495496
};
@@ -537,7 +538,7 @@
537538
MTL_ENABLE_DEBUG_INFO = NO;
538539
SDKROOT = iphoneos;
539540
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
540-
SWIFT_VERSION = 4.2;
541+
SWIFT_VERSION = 5.0;
541542
VALIDATE_PRODUCT = YES;
542543
};
543544
name = Release;
@@ -557,10 +558,10 @@
557558
PRODUCT_MODULE_NAME = Demo;
558559
PRODUCT_NAME = SubtleVolume;
559560
PROVISIONING_PROFILE = "f7168a28-8f3d-4e45-bcbd-a54a870789e7";
560-
PROVISIONING_PROFILE_SPECIFIER = "General Development";
561+
PROVISIONING_PROFILE_SPECIFIER = Development;
561562
SWIFT_COMPILATION_MODE = wholemodule;
562563
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
563-
SWIFT_VERSION = 4.2;
564+
SWIFT_VERSION = 5.0;
564565
TARGETED_DEVICE_FAMILY = "1,2";
565566
};
566567
name = Debug;
@@ -580,9 +581,9 @@
580581
PRODUCT_MODULE_NAME = Demo;
581582
PRODUCT_NAME = SubtleVolume;
582583
PROVISIONING_PROFILE = "f7168a28-8f3d-4e45-bcbd-a54a870789e7";
583-
PROVISIONING_PROFILE_SPECIFIER = "General Development";
584+
PROVISIONING_PROFILE_SPECIFIER = Development;
584585
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
585-
SWIFT_VERSION = 4.2;
586+
SWIFT_VERSION = 5.0;
586587
TARGETED_DEVICE_FAMILY = "1,2";
587588
};
588589
name = Release;

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[![CocoaPods](https://cocoapod-badges.herokuapp.com/v/SubtleVolume/badge.svg)](http://cocoapods.org/?q=subtlevolume)
66
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
7-
![Swift 4.2](https://img.shields.io/badge/swift-4.2-orange.svg)
7+
![Swift 5.0](https://img.shields.io/badge/swift-5.0-orange.svg)
88

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

@@ -13,8 +13,8 @@ Replace the volume popup with a more subtle way to display the volume when the u
1313
</p>
1414

1515
# Why and how
16-
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.
17-
To make sure that the popover is not shown there are two conditions that need to be satisfied:
16+
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.
17+
To make sure that the popover is not shown there are two conditions that need to be satisfied:
1818
- An `AVAudioSession` needs to be active
1919
- An `MPVolumeView` needs to be in the current view's hierarchy, and its alpha needs to be greater than 0
2020

@@ -130,7 +130,7 @@ SubtleVolume automatically removes the observer on deinit.
130130
# Hire us
131131
Written by [Andrea Mazzini](https://twitter.com/theandreamazz). We're available for freelance work, feel free to contact us [here](https://www.fancypixel.it/contact/).
132132

133-
Want to support the development of [these free libraries](https://cocoapods.org/owners/734)? Buy me a coffee ☕️ via [Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=46FNZD4PDVNRU).
133+
Want to support the development of [these free libraries](https://cocoapods.org/owners/734)? Buy me a coffee ☕️ via [Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=46FNZD4PDVNRU).
134134

135135
# MIT License
136136

Source/SubtleVolume.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public enum SubtleVolumeError: Error {
167167
///
168168
/// - Parameter delta: the volume increase. The volume goes from 0 to 1, delta must be a Double in that range
169169
/// - Throws: `SubtleVolumeError.unableToChangeVolumeLevel`
170-
@objc public func increseVolume(by step: Double = DefaultVolumeStep, animated: Bool = false) throws {
170+
@objc public func increaseVolume(by step: Double = DefaultVolumeStep, animated: Bool = false) throws {
171171
try setVolumeLevel(volumeLevel + step, animated: animated)
172172
}
173173

SubtleVolume.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'SubtleVolume'
3-
s.version = '1.0.2'
3+
s.version = '1.1.0'
44
s.license = 'MIT'
55
s.summary = 'Replace the system volume popup with a more subtle indicator'
66
s.description = <<-DESC
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
1212
s.source = { :git => 'https://github.com/andreamazz/SubtleVolume.git', :tag => s.version }
1313

1414
s.ios.deployment_target = '8.0'
15-
s.swift_version = '4.2'
15+
s.swift_version = '5.0'
1616
s.source_files = 'Source/*.swift'
1717

1818
s.requires_arc = true

SubtleVolume.xcodeproj/project.pbxproj

+3
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
developmentRegion = English;
108108
hasScannedForEncodings = 0;
109109
knownRegions = (
110+
English,
110111
en,
111112
);
112113
mainGroup = 65FCA92F1C980A2E00B2610D;
@@ -193,6 +194,7 @@
193194
ONLY_ACTIVE_ARCH = YES;
194195
SDKROOT = iphoneos;
195196
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
197+
SWIFT_VERSION = 5.0;
196198
TARGETED_DEVICE_FAMILY = "1,2";
197199
VERSIONING_SYSTEM = "apple-generic";
198200
VERSION_INFO_PREFIX = "";
@@ -244,6 +246,7 @@
244246
MTL_ENABLE_DEBUG_INFO = NO;
245247
SDKROOT = iphoneos;
246248
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
249+
SWIFT_VERSION = 5.0;
247250
TARGETED_DEVICE_FAMILY = "1,2";
248251
VALIDATE_PRODUCT = YES;
249252
VERSIONING_SYSTEM = "apple-generic";

0 commit comments

Comments
 (0)