Skip to content

Commit

Permalink
Fixed notification.object when posting IASKSettingChangedNotification…
Browse files Browse the repository at this point in the history
… for a PSTextFieldSpecifier

fixed #450
  • Loading branch information
futuretap committed Feb 3, 2021
1 parent 55eb97c commit de3393a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion InAppSettingsKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'InAppSettingsKit'
s.version = '3.2'
s.version = '3.3'
s.summary = 'This iPhone framework allows settings to be in-app in addition to being in the Settings app.'

s.description = <<-DESC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ - (void)textViewDidChange:(IASKTextView *)textView {

[self.settingsStore setObject:textView.text forSpecifier:textView.specifier];
[[NSNotificationCenter defaultCenter] postNotificationName:kIASKAppSettingChanged
object:textView.specifier.key
object:self
userInfo:@{(id)textView.specifier.key: textView.text}];

}
Expand Down
8 changes: 8 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release Notes

## InAppSettingsKit 3.3

- The `IASKSettingChangedNotification` for a `PSTextFieldSpecifier` now sends `IASKAppSettingsViewController` as the notification object – analogous to all other occurrences of this notification. If your notification observer code needs to access the specifier key, consult the notification's userInfo dictionary.

## InAppSettingsKit 3.2

- Mac Catalyst support was added.

## InAppSettingsKit 3.1

- In iOS 14+, setting an IASKDatePickerStyle is supported.
Expand Down

0 comments on commit de3393a

Please sign in to comment.