Skip to content

お気に入りされたアニメを保存するRealmのクラスを作成 #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Yoshitsugu-Antony-Kambara

関連するIssues

変更内容

RealmWork.swiftという名前のファイルを作成
RealmWorkというクラスを作成し、その中でid, title, recommendUrlを定義

Before After

参考

その他 補足

Comment on lines 17 to 22
var image: RealmImage { return RealmImage(recommendedUrl: recommendedUrl) }
}

struct RealmImage {
let recommendedUrl: String?
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このimageっていう変数 StringがString?になっただけのようにみえるんやけどRealmImageっていう構造体で定義する理由ってある?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants