Skip to content

Commit

Permalink
3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
efremidze committed Oct 15, 2021
1 parent 4084702 commit e039324
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change log

## [Version 3.0.3](https://github.com/efremidze/Haptica/releases/tag/3.0.3)
Released on 2021-10-15

- Added rigid and soft haptic feedback to patterns

## [Version 3.0.2](https://github.com/efremidze/Haptica/releases/tag/3.0.2)
Released on 2019-12-04

Expand Down
2 changes: 1 addition & 1 deletion Haptica.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Haptica'
s.version = '3.0.2'
s.version = '3.0.3'
s.summary = 'Easy Haptic Feedback'
s.homepage = 'https://github.com/efremidze/Haptica'
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
4 changes: 2 additions & 2 deletions Haptica.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 3.0.2;
MARKETING_VERSION = 3.0.3;
PRODUCT_BUNDLE_IDENTIFIER = com.efremidze.Haptica;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -458,7 +458,7 @@
INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MARKETING_VERSION = 3.0.2;
MARKETING_VERSION = 3.0.3;
PRODUCT_BUNDLE_IDENTIFIER = com.efremidze.Haptica;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ Use pattern symbols to represent custom vibrations.
- `O` - heavy impact
- `o` - medium impact
- `.` - light impact
- `X` - rigid impact
- `x` - soft impact
- `-` - wait 0.1 second

Or play a symphony of notes:
Expand Down
12 changes: 12 additions & 0 deletions Sources/Pattern.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ public enum Note {
self = .haptic(.impact(.medium))
case ".":
self = .haptic(.impact(.light))
case "X":
if #available(iOS 13.0, *) {
self = .haptic(.impact(.rigid))
} else {
self = .haptic(.impact(.heavy))
}
case "x":
if #available(iOS 13.0, *) {
self = .haptic(.impact(.soft))
} else {
self = .haptic(.impact(.light))
}
case "-":
self = .wait(delay)
default:
Expand Down

0 comments on commit e039324

Please sign in to comment.