Skip to content

Commit 28c015e

Browse files
author
Ignacio Romero Zurbuchen
authored
Merge pull request slackhq#528 from ClementPadovani/patch-1
Added correct nullability values for initializers
2 parents e841858 + 5d2806e commit 28c015e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/SLKTextViewController.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ NS_CLASS_AVAILABLE_IOS(7_0) @interface SLKTextViewController : UIViewController
135135
@param style A constant that specifies the style of main table view that the controller object is to manage (UITableViewStylePlain or UITableViewStyleGrouped).
136136
@return An initialized SLKTextViewController object or nil if the object could not be created.
137137
*/
138-
- (instancetype)initWithTableViewStyle:(UITableViewStyle)style;
138+
- (instancetype __nullable)initWithTableViewStyle:(UITableViewStyle)style;
139139

140140
/**
141141
Initializes a collection view controller and configures the collection view with the provided layout.
@@ -144,15 +144,15 @@ NS_CLASS_AVAILABLE_IOS(7_0) @interface SLKTextViewController : UIViewController
144144
@param layout The layout object to associate with the collection view. The layout controls how the collection view presents its cells and supplementary views.
145145
@return An initialized SLKTextViewController object or nil if the object could not be created.
146146
*/
147-
- (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout;
147+
- (instancetype __nullable)initWithCollectionViewLayout:(UICollectionViewLayout *)layout;
148148

149149
/**
150150
Initializes a text view controller to manage an arbitraty scroll view. The caller is responsible for configuration of the scroll view, including wiring the delegate.
151151
152152
@param a UISCrollView to be used as the main content area.
153153
@return An initialized SLKTextViewController object or nil if the object could not be created.
154154
*/
155-
- (instancetype)initWithScrollView:(UIScrollView *)scrollView;
155+
- (instancetype __nullable)initWithScrollView:(UIScrollView *)scrollView;
156156

157157
/**
158158
Initializes either a table or collection view controller.
@@ -161,7 +161,7 @@ NS_CLASS_AVAILABLE_IOS(7_0) @interface SLKTextViewController : UIViewController
161161
@param decoder An unarchiver object.
162162
@return An initialized SLKTextViewController object or nil if the object could not be created.
163163
*/
164-
- (instancetype)initWithCoder:(NSCoder *)decoder;
164+
- (instancetype __nullable)initWithCoder:(NSCoder *)decoder;
165165

166166
/**
167167
Returns the tableView style to be configured when using Interface Builder. Default is UITableViewStylePlain.

0 commit comments

Comments
 (0)