回答編集履歴

1

参考文献を追記しました!

2021/12/25 02:16

投稿

Pomu3270
Pomu3270

スコア280

test CHANGED
@@ -32,9 +32,9 @@
32
32
 
33
33
  HStack(alignment: .top) {
34
34
 
35
- KFImage(source: .network(URL(string: news.image)!), options: [.requestModifier(modifier)])
35
+ KFImage(source: .network(URL(string: urlImageString)!), options: [.requestModifier(modifier)])
36
36
 
37
- Image("stub_news_image")
37
+ Image("image")
38
38
 
39
39
  .resizable()
40
40
 
@@ -49,3 +49,15 @@
49
49
  }
50
50
 
51
51
  ```
52
+
53
+
54
+
55
+ ・SwiftUIのkingfisherの使いかたサンプル
56
+
57
+ https://github.com/onevcat/Kingfisher/tree/master/Demo/Demo/Kingfisher-Demo/SwiftUIViews
58
+
59
+
60
+
61
+ ・参考
62
+
63
+ https://stackoverflow.com/questions/38464862/how-to-use-kingfisher-or-alamofireimage-library-with-auth-token