I am able to use my program through the Live Preview, but when I run it in a simulator it crashes and I get the following error;
Fatal error: No ObservableObject of type RollCode found. A View.environmentObject(_ for RollCode may be missing as an ancestor of this view.: file SwiftUI, line 0
Main View
ButtonView
Logic, ObservableObject