1
0

Module 'Nuke' has no member named 'loadImage'になってブチ切れてる人へ(俺)

Posted at

【背景】

SwiftとUiKitの練習でこの記事のアプリを作ってみっかーと思ったら途中で詰んだので共有。
どうやらNukeの更新でNuke.loadImageがなくなってしまった模様。

ネットで調べてもあまり情報が無いため、メモ代わりにここに書いておく。

ダメな書き方

Nuke.loadImage(with: ***, into: ***)

これだと
Module 'Nuke' has no member named 'loadImage'
となる。

イケる書き方

その1

import Nuke
import NukeExtensions //コレ追加

importでNukeに加えて"NukeExtensions"ってやつを追加

その2

loadImage(with: ****, into: ***)

この書き方をする。そしたら動いたわ。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0