Skip to content
This repository was archived by the owner on Mar 1, 2020. It is now read-only.

Commit 0db6766

Browse files
committed
Use Bool and String instead of Foundation types
1 parent 5f3a819 commit 0db6766

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

bin/querykit.swift

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,19 @@ class AttributeDescription : NSObject {
4545
}
4646

4747
extension NSAttributeDescription {
48+
var qkClassName:String? {
49+
switch attributeType {
50+
case .BooleanAttributeType:
51+
return "Bool"
52+
case .StringAttributeType:
53+
return "String"
54+
default:
55+
return attributeValueClassName
56+
}
57+
}
58+
4859
var qkAttributeDescription:AttributeDescription? {
49-
if let className = attributeValueClassName {
60+
if let className = qkClassName {
5061
return AttributeDescription(name: name, type: className)
5162
}
5263

0 commit comments

Comments
 (0)