Skip to content
Discussion options

You must be logged in to vote

代码块的 header 与 body

这里没有 header 和 body 的概念 就是一个块

@resetsix 自定义代码块需要自定义一个 Style 类型 然后遵循 CodeBlockStyle 协议

参考

  • DefaultCodeBlock (在项目里有源码)
  • SwiftUI.ButtonStyle
    • 这部分设计和 SwiftUI 一致 可以自行搜索一下

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LiYanan2004
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LiYanan2004
Comment options

Comment options

You must be logged in to vote
1 reply
@LiYanan2004
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #69 on April 16, 2025 12:04.