Skip to content

Commit e039324

Browse files
committed
3.0.3
1 parent 4084702 commit e039324

File tree

5 files changed

+22
-3
lines changed

5 files changed

+22
-3
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change log
22

3+
## [Version 3.0.3](https://github.com/efremidze/Haptica/releases/tag/3.0.3)
4+
Released on 2021-10-15
5+
6+
- Added rigid and soft haptic feedback to patterns
7+
38
## [Version 3.0.2](https://github.com/efremidze/Haptica/releases/tag/3.0.2)
49
Released on 2019-12-04
510

Haptica.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'Haptica'
11-
s.version = '3.0.2'
11+
s.version = '3.0.3'
1212
s.summary = 'Easy Haptic Feedback'
1313
s.homepage = 'https://github.com/efremidze/Haptica'
1414
s.license = { :type => 'MIT', :file => 'LICENSE' }

Haptica.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@
438438
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
439439
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
440440
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
441-
MARKETING_VERSION = 3.0.2;
441+
MARKETING_VERSION = 3.0.3;
442442
PRODUCT_BUNDLE_IDENTIFIER = com.efremidze.Haptica;
443443
PRODUCT_NAME = "$(TARGET_NAME)";
444444
SKIP_INSTALL = YES;
@@ -458,7 +458,7 @@
458458
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
459459
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
460460
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
461-
MARKETING_VERSION = 3.0.2;
461+
MARKETING_VERSION = 3.0.3;
462462
PRODUCT_BUNDLE_IDENTIFIER = com.efremidze.Haptica;
463463
PRODUCT_NAME = "$(TARGET_NAME)";
464464
SKIP_INSTALL = YES;

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ Use pattern symbols to represent custom vibrations.
5656
- `O` - heavy impact
5757
- `o` - medium impact
5858
- `.` - light impact
59+
- `X` - rigid impact
60+
- `x` - soft impact
5961
- `-` - wait 0.1 second
6062

6163
Or play a symphony of notes:

Sources/Pattern.swift

+12
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ public enum Note {
4141
self = .haptic(.impact(.medium))
4242
case ".":
4343
self = .haptic(.impact(.light))
44+
case "X":
45+
if #available(iOS 13.0, *) {
46+
self = .haptic(.impact(.rigid))
47+
} else {
48+
self = .haptic(.impact(.heavy))
49+
}
50+
case "x":
51+
if #available(iOS 13.0, *) {
52+
self = .haptic(.impact(.soft))
53+
} else {
54+
self = .haptic(.impact(.light))
55+
}
4456
case "-":
4557
self = .wait(delay)
4658
default:

0 commit comments

Comments
 (0)