Skip to content

Instantly share code, notes, and snippets.

View crylico's full-sized avatar

Kyle Levin crylico

  • Philadelphia, PA
View GitHub Profile
@crylico
crylico / Enum.swift
Created July 21, 2015 22:46
Swift @objc(<#name>) for enums
@objc(LRMessage) public enum Message: UInt8 {
case Hello = 0
case World = 1
}
var x: Message = .Hello
x = .World
@crylico
crylico / Sensor.swift
Last active August 29, 2015 14:25
Swift @objc(<name>) broken in extensions
@objc(LRSensor)
public class Sensor: NSObject {
}
public extension Sensor {
public var test: String {
return "Hello!"
}
@crylico
crylico / DynamicType.h
Last active January 20, 2021 15:23
DynamicType in React Native
#import <Foundation/Foundation.h>
#import "RCTBridgeModule.h"
@interface DynamicType : NSObject <RCTBridgeModule>
@end

Keybase proof

I hereby claim:

  • I am crylico on github.
  • I am crylico (https://keybase.io/crylico) on keybase.
  • I have a public key whose fingerprint is 04AE 58EF 2626 A73B 1C7A C419 6B6B 3C16 D7F9 23B5

To claim this, I am signing this object: