MXKAttachment: Improve MXKAttachmentType definition.

This commit is contained in:
SBiOSoftWhare
2022-01-26 16:01:42 +01:00
parent 9774b315d7
commit f9cee67cd1

View File

@@ -27,7 +27,7 @@ extern NSString * const kMXKAttachmentErrorDomain;
/**
List attachment types
*/
typedef enum : NSUInteger {
typedef NS_ENUM(NSUInteger, MXKAttachmentType) {
MXKAttachmentTypeUndefined,
MXKAttachmentTypeImage,
MXKAttachmentTypeAudio,
@@ -35,8 +35,7 @@ typedef enum : NSUInteger {
MXKAttachmentTypeVideo,
MXKAttachmentTypeFile,
MXKAttachmentTypeSticker
} MXKAttachmentType;
};
/**
`MXKAttachment` represents a room attachment.