最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

swift - is there a way to recreate the background patteren of this image programatically using swiftUI - Stack Overflow

programmeradmin4浏览0评论

I am trying to re-create the pattern of this background image, it looks like clouds. Is there a way to do it programmatically using SwiftUI?

I understand how to add the gradient and the colors, same with image text and buttons but I don't know if I can get the pattern programmatically or if I have to get an asset for a pattern like this. Should I just get a picture?

I am trying to re-create the pattern of this background image, it looks like clouds. Is there a way to do it programmatically using SwiftUI?

I understand how to add the gradient and the colors, same with image text and buttons but I don't know if I can get the pattern programmatically or if I have to get an asset for a pattern like this. Should I just get a picture?

Share asked Mar 7 at 17:25 Ali AbrahamAli Abraham 656 bronze badges 1
  • You can probably get close with circles. I have done several cloud backgrounds with circles of random sizes, and randomly gradient masked. Or you can make it full smokey with a particle generator. – lorem ipsum Commented Mar 7 at 17:46
Add a comment  | 

1 Answer 1

Reset to default 1
  1. Google -> "image smoke texture particle"

  2. put set of Imgs inside of ZStack with different offset and different rotate angle

  3. make overlay color over the ZStack OR try to make image template with needed color (.renderingMode(.template) ). Not sure template will work or not for this case

  4. Add mask opacity gradient to make left and right sides a little bit less bright

and you will get similar image to shared by you

Also you can try animate images using rotation - this will look great

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论