โ™ฆ๏ธ.shadow()

โ•ฑ๐Ÿšง under construction

SwiftUI โŸฉ ShapeStyle โŸฉ .shadow()

ShapeStyle.shadow() (type method)

returns a new shape style created by applying the specified shadow style on the current style.

current style

  • ้€šๅธธๆŒ‡ foreground styleใ€‚ๅœจ็นช่ฃฝๅœ–ๅฝขๆ™‚๏ผŒ็ณป็ตฑๆœƒไฝฟ็”จ foregroundColor ไฝœ็‚บ็›ฎๅ‰ๆจฃๅผใ€‚

  • ๅฆ‚ๆžœๆญฃๅœจ่จญ็ฝฎ background style๏ผŒ่ƒŒๆ™ฏๆจฃๅผๅฐฑๆœƒๆˆ็‚บ็›ฎๅ‰ๆจฃๅผใ€‚

  • ShapeStyle๏ผš.shadow() ๅช่ƒฝไฝœ็”จๅœจๅ…ถไธŠใ€‚

  • Shape๏ผšshape.fill(content) ็š„ๅกซๅ……ๆจฃๅผ content ๆ˜ฏ ShapeStyleใ€‚

  • ShadowStyle๏ผš้™ฐๅฝฑๆจฃๅผ

Last updated