File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -192,13 +192,15 @@ public final class Gridicon: NSObject {
192192 }
193193
194194 /// - returns: A template image of the specified Gridicon type, at the default size.
195+ @objc
195196 public static func iconOfType( _ type: GridiconType ) -> UIImage {
196197 return iconOfType ( type, withSize: defaultSize)
197198 }
198199
199200 // These are two separate methods (rather than one method with a default argument) because Obj-C
200201
201202 /// - returns: A template image of the specified Gridicon type, at the specified size.
203+ @objc
202204 public static func iconOfType( _ type: GridiconType , withSize size: CGSize ) -> UIImage {
203205 if let icon = cachedIconOfType ( type, withSize: size) {
204206 return icon
Original file line number Diff line number Diff line change 114114 TargetAttributes = {
115115 1704C20F1CAF0D7E00F991DE = {
116116 CreatedOnToolsVersion = 7.3;
117- LastSwiftMigration = 0900 ;
117+ LastSwiftMigration = 0910 ;
118118 };
119119 };
120120 };
293293 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
294294 PRODUCT_BUNDLE_IDENTIFIER = com.automattic.GridiconsDemo;
295295 PRODUCT_NAME = "$(TARGET_NAME)";
296- SWIFT_VERSION = 3 .0;
296+ SWIFT_VERSION = 4 .0;
297297 };
298298 name = Debug;
299299 };
305305 LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
306306 PRODUCT_BUNDLE_IDENTIFIER = com.automattic.GridiconsDemo;
307307 PRODUCT_NAME = "$(TARGET_NAME)";
308- SWIFT_VERSION = 3 .0;
308+ SWIFT_VERSION = 4 .0;
309309 };
310310 name = Release;
311311 };
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class ViewController: UIViewController {
3333 return types
3434 } ( )
3535
36- var iconSize = CGSize ( width: 24.0 , height: 24.0 )
36+ @ objc var iconSize = CGSize ( width: 24.0 , height: 24.0 )
3737
3838 override func viewDidLoad( ) {
3939 super. viewDidLoad ( )
You can’t perform that action at this time.
0 commit comments