change class ScanViewModel to struct ScanViewModel may help.
Topic:
Programming Languages
SubTopic:
Swift
Tags: