Skip to content

Conversation

@Grusjaponensis
Copy link
Contributor

修复了一下Navigation目录下MAAContent在Xcode中预览失败的问题。
修改方式如下:

struct MAAContent_Previews: PreviewProvider {
    static var previews: some View {
        MAAContent(sidebar: .constant(.daily),
                   selection: .constant(.init()))
        .environmentObject(MAAViewModel())            // -----> 新增
    }
}

Copy link
Contributor

@ChestnutLUO ChestnutLUO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ninekirin
Copy link
Contributor

ninekirin commented Jun 14, 2025

这个在我之前的 Pull Request 里有修过(
#49 364a969

@Grusjaponensis
Copy link
Contributor Author

这个在我之前的 Pull Request 里有修过( #49 364a969

啊不好意思,因为还没合到主分支里,我没有看到(((

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants