Skip to content

Commit 69a04e1

Browse files
authored
Merge pull request #62 from makinosp/develop
feat: adopt instance type to custom string convertible
2 parents 5a19ef1 + fab7805 commit 69a04e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/VRCKit/Models/InstanceModel.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,18 @@ public struct Instance: Identifiable, Hashable, Codable {
4646
case group
4747
}
4848

49-
public enum InstanceType: String {
49+
public enum InstanceType: String, CustomStringConvertible {
5050
case `public` = "Public"
5151
case friendsPlus = "Friends+"
5252
case friends = "Friends"
5353
case `private` = "Private"
5454
case group = "Group"
5555
case groupPlus = "Group+"
5656
case groupPublic = "Group Public"
57+
58+
public var description: String {
59+
rawValue
60+
}
5761
}
5862

5963
public var instanceType: InstanceType {

0 commit comments

Comments
 (0)