Created
May 23, 2019 18:44
-
-
Save Kentzo/f79e667304fbf07d03006b93e386c1fd to your computer and use it in GitHub Desktop.
NS_SWIFT_NAME is recursive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface Sandwich: NSObject | |
@end | |
NS_SWIFT_NAME(Sandwich.Preferences) | |
@interface SandwichPreferences: NSObject | |
@end | |
typedef NS_ENUM(NSInteger, SandwichBreadType) { | |
} NS_SWIFT_NAME(SandwichPreferences.BreadType); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sandwich: Sandwich? | |
var preferences: Sandwich.Preferences? | |
var breadType: Sandwich.Preferences.BreadType? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface SRRecorderControlStyle: NSObject | |
@end | |
@interface SRRecorderControlStyleComponents: NSObject | |
@end | |
typedef NS_ENUM(NSUInteger, SRRecorderControlStyleComponentsAppearance) {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var style: RecorderControlStyle? | |
var components: RecorderControlStyle.Components? | |
var appearance: RecorderControlStyle.Components.Appearance? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NS_SWIFT_NAME(RecorderControlStyle) | |
@interface SRRecorderControlStyle: NSObject | |
@end | |
NS_SWIFT_NAME(SRRecorderControlStyle.Components) | |
// NS_SWIFT_NAME(RecorderControlStyle.Components) also works! | |
@interface SRRecorderControlStyleComponents: NSObject | |
@end | |
typedef NS_ENUM(NSUInteger, SRRecorderControlStyleComponentsAppearance) | |
{} NS_SWIFT_NAME(SRRecorderControlStyleComponents.Appearance); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NS_SWIFT_NAME(RecorderControlStyle) | |
@interface SRRecorderControlStyle: NSObject | |
@end | |
NS_SWIFT_NAME(RecorderControlStyle.Components) | |
@interface SRRecorderControlStyleComponents: NSObject | |
@end | |
typedef NS_ENUM(NSUInteger, SRRecorderControlStyleComponentsAppearance) | |
{} NS_SWIFT_NAME(RecorderControlStyle.Components.Appearance); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment