diff --git a/Cartography/LayoutItem.swift b/Cartography/LayoutItem.swift index 4c8b949..7d7d14b 100644 --- a/Cartography/LayoutItem.swift +++ b/Cartography/LayoutItem.swift @@ -6,7 +6,7 @@ // Copyright © 2017 Robert Böhnke. All rights reserved. // -public protocol LayoutItem: class { +public protocol LayoutItem: AnyObject { associatedtype ProxyType: LayoutProxy func asProxy(context: Context) -> ProxyType diff --git a/Cartography/LayoutProxy.swift b/Cartography/LayoutProxy.swift index d342db7..6100c43 100644 --- a/Cartography/LayoutProxy.swift +++ b/Cartography/LayoutProxy.swift @@ -14,7 +14,7 @@ import UIKit import AppKit #endif -public protocol LayoutProxy: class { +public protocol LayoutProxy: AnyObject { var context: Context { get } var item: AnyObject { get } //type-erased Layoutitem }