From 87cf2886be4a7070934cfc7d37f1c31e5328531f Mon Sep 17 00:00:00 2001 From: Ian Ynda-Hummel Date: Fri, 23 Jul 2021 19:29:16 -0400 Subject: [PATCH] Use instance layout key instead of type layout key --- Amethyst/Managers/ScreenManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Amethyst/Managers/ScreenManager.swift b/Amethyst/Managers/ScreenManager.swift index 5443febc..cf811f82 100644 --- a/Amethyst/Managers/ScreenManager.swift +++ b/Amethyst/Managers/ScreenManager.swift @@ -241,7 +241,7 @@ final class ScreenManager: NSObject, Codable { } func selectLayout(_ layoutString: String) { - guard let layoutIndex = layouts.index(where: { type(of: $0).layoutKey == layoutString }) else { + guard let layoutIndex = layouts.index(where: { $0.layoutKey == layoutString }) else { return }