From b1ec2959f288cd71a4843b3cb3aed9fd16a520ce Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 5 Dec 2024 09:35:28 +0800 Subject: [PATCH] doc: update document. --- README.md | 4 +++- README.zh.md | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6502909..0fed33e 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,9 @@ let customSymbol:NSImage? = NSImage(named: "MyCustomSymbolName")? Apply a specific appearance to a symbol image ```swift -var configuration = NSImage.SymbolConfiguration(paletteColors: [.systemTeal, .systemGray]) +var configuration = NSImage.SymbolConfiguration( + paletteColors: [.systemTeal, .systemGray] +) configuration = config.applying(.init(textStyle: .title1)) imageView.symbolConfiguration = config ``` diff --git a/README.zh.md b/README.zh.md index bf18f5e..61c830c 100644 --- a/README.zh.md +++ b/README.zh.md @@ -87,7 +87,9 @@ let customSymbol:NSImage? = NSImage(named: "MyCustomSymbolName")? 为符号图像应用特定外观 ```swift -var configuration = NSImage.SymbolConfiguration(paletteColors: [.systemTeal, .systemGray]) +var configuration = NSImage.SymbolConfiguration( + paletteColors: [.systemTeal, .systemGray] +) configuration = config.applying(.init(textStyle: .title1)) imageView.symbolConfiguration = config ``` @@ -124,7 +126,8 @@ Text("使用 \(Image("myCustomSymbolName")) 裁剪图像") - +