Skip to content

Commit 6a985a0

Browse files
committed
Changing SDK from 9.3 beta to 9.2.
Adds NSLeafProxy to list of excepted classes. Summary: Fixes multiple problems with the "catalog by convention". Reviewers: #material_components_ios_owners Projects: #material_components_ios Differential Revision: http://codereview.cc/D126
1 parent 8515927 commit 6a985a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

catalog/MDCCatalog/Runtime.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ func getAllClasses() -> [AnyClass] {
4242
func classesRespondingToSelector(selector: Selector) -> [AnyClass] {
4343
return getAllClasses().filter {
4444
let className = NSStringFromClass($0)
45-
if className == "SwiftObject" || className == "Object" || className.hasPrefix("Swift.") || className.hasPrefix("_") || className.hasPrefix("JS") {
45+
if className == "SwiftObject" || className == "Object" || className.hasPrefix("Swift.") ||
46+
className.hasPrefix("_") || className.hasPrefix("JS") || className == "NSLeafProxy" {
4647
return false
4748
}
4849
return $0.respondsToSelector(selector)

0 commit comments

Comments
 (0)