Skip to content

Commit

Permalink
Fix nullability annotation on willUpdateDataModel
Browse files Browse the repository at this point in the history
Return value is optional
  • Loading branch information
wtmoose committed Jul 21, 2015
1 parent 30bdf5f commit a1124ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions TLIndexPathTools.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "TLIndexPathTools"
s.version = "0.4.0"
s.version = "0.4.1"
s.summary = "TLIndexPathTools is a small set of classes that can greatly simplify your table and collection views."
s.description = <<-DESC
TLIndexPathTools is a small set of classes that can greatly simplify your table and collection views. Here are some of the awesome things TLIndexPathTools does:
Expand All @@ -11,18 +11,14 @@ Pod::Spec.new do |s|
* Provide a simpler alternative to Core Data NSFetchedResultsController
* Provide base table view and collection view classes with advanced features
0.4.0
* Add swift nullability annotations to the core classes:
TLIndexPathDataModel
TLIndexPathUpdates
TLIndexPathController
TLIndexPathItem
0.4.1
* Fix nullability annotation on [TLIndexPathController controller:willUpdateDataModel:withDataModel:]
DESC
s.homepage = "http://tlindexpathtools.com"
s.license = { :type => "MIT" }
s.author = { "wtmoose" => "[email protected]" }
s.source = { :git => "https://github.com/wtmoose/TLIndexPathTools.git", :tag => '0.4.0' }
s.source = { :git => "https://github.com/wtmoose/TLIndexPathTools.git", :tag => '0.4.1' }
s.platform = :ios, '6.0'
s.ios.deployment_target = '6.0'
s.source_files = 'TLIndexPathTools/**/*.{h,m}'
Expand Down
2 changes: 1 addition & 1 deletion TLIndexPathTools/Controllers/TLIndexPathController.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ extern NSString * kTLIndexPathUpdatesKey;
@returns an alternative data model to use instead of `updatedDataModel` or `nil` to use `updatedDataModel`
*/
- (TLIndexPathDataModel *)controller:(TLIndexPathController *)controller willUpdateDataModel:(TLIndexPathDataModel * __nullable)oldDataModel withDataModel:(TLIndexPathDataModel * __nullable)updatedDataModel;
- (TLIndexPathDataModel * __nullable)controller:(TLIndexPathController *)controller willUpdateDataModel:(TLIndexPathDataModel * __nullable)oldDataModel withDataModel:(TLIndexPathDataModel * __nullable)updatedDataModel;

/**
Notifies the reciever of batch data model changes.
Expand Down

0 comments on commit a1124ad

Please sign in to comment.