From a64f9b809d38846caee8a3e142e90a410964ef0f Mon Sep 17 00:00:00 2001 From: Nate Stedman Date: Wed, 9 Sep 2020 06:06:25 -0700 Subject: [PATCH] Make IGListGenericSectionController's -didUpdateToObject: properly generic Summary: This is currently just `id`, so when you override it, you can't use the local without casting. We should declare it as `ObjectType` so that it gets the specialized type instead. The implementation just assigns to the generic `_object` property-backing ivar, so no difference in type-safety. Differential Revision: D23589584 fbshipit-source-id: 3784929f89580fd603fffcf940c7a5b502501bc5 --- Source/IGListKit/IGListGenericSectionController.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/IGListKit/IGListGenericSectionController.h b/Source/IGListKit/IGListGenericSectionController.h index c2e61736..e0cf25e1 100644 --- a/Source/IGListKit/IGListGenericSectionController.h +++ b/Source/IGListKit/IGListGenericSectionController.h @@ -33,7 +33,7 @@ NS_SWIFT_NAME(ListGenericSectionController) @note This `IGListSectionController` subclass sets its object in this method, so any overrides **must call super**. */ -- (void)didUpdateToObject:(id)object NS_REQUIRES_SUPER; +- (void)didUpdateToObject:(ObjectType)object NS_REQUIRES_SUPER; @end