Skip to content

Commit

Permalink
Use weak instead of unowned references
Browse files Browse the repository at this point in the history
Fixes #495 and #496, thanks @via-guy.
  • Loading branch information
futuretap committed Sep 27, 2024
1 parent 2008004 commit f1497ca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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.7.2'
s.version = '3.7.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 @@ -224,7 +224,7 @@ typedef NS_ENUM(NSUInteger, IASKValidationResult) {
@interface IASKAppSettingsViewController : UITableViewController <IASKViewController, UITextFieldDelegate, MFMailComposeViewControllerDelegate>

/// the delegate to customize IASK’s behavior. Propagated to child view controllers.
@property (nonatomic, assign) IBOutlet id<IASKSettingsDelegate> delegate;
@property (nonatomic, weak) IBOutlet id<IASKSettingsDelegate> delegate;

/** base name of the settings plist file (default: `Root`)
@discussion IASK automatically checks for specific or custom inApp plists according to this order (`DEVICE` being a placeholder for "iphone" on iPhone and "ipad" on iPad):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ NS_ASSUME_NONNULL_BEGIN
/// This is used for PSMultiValueSpecifier and PSRadioGroupSpecifier
@interface IASKMultipleValueSelection : NSObject

@property (nullable, nonatomic, assign) UITableView *tableView;
@property (nullable, nonatomic, weak) UITableView *tableView;
@property (nonatomic, copy, readonly) NSIndexPath *checkedIndexPath;
@property (nonatomic, strong) id<IASKSettingsStore> settingsStore;

Expand Down

0 comments on commit f1497ca

Please sign in to comment.