Skip to content

Commit

Permalink
Use instance layout key instead of type layout key
Browse files Browse the repository at this point in the history
  • Loading branch information
ianyh committed Oct 30, 2021
1 parent 6d947ec commit 87cf288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Amethyst/Managers/ScreenManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ final class ScreenManager<Delegate: ScreenManagerDelegate>: 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
}

Expand Down

0 comments on commit 87cf288

Please sign in to comment.