-
Notifications
You must be signed in to change notification settings - Fork 4
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
Week 5 Assignment - Network #14
base: jumin
Are you sure you want to change the base?
Conversation
@main | ||
struct ApiTestApp: App { | ||
|
||
var body: some Scene { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ค์ฌ์ฐ๊ธฐ ์ํ๊ฐ ์ข ์ด์ํฉ๋๋ค.
return webView | ||
} | ||
|
||
func updateUIView(_ uiView: WKWebView, context: UIViewRepresentableContext<BlogWebView>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ด ๋ฉ์๋์ ์ญํ ์ ๋ฌด์์ผ๊น์ ?
|
||
return urlRequest | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fetchBookList, fetchBookBlog์ ์ค๋ณต๋๋ ๋ถ๋ถ์ด ์์ต๋๋ค.
API๊ฐ ์ถ๊ฐ๋๋ค๋ฉด ์ค๋ณต์ด ๊ณ์ ๋๊ฒ ์ฃ ?
์ค๋ณต์ ์์ ๋ด
์๋ค !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋คํธ์ํฌ๋ฅผ ์ํ ๊ณตํต ์ฝ๋๋ ๋คํธ์ํฌ ๋งค๋์ ๋ก ๋ง๋ค๊ณ , book api ๋์์ ์ํ ๊ตฌํ์ ๋ฐ๋ก ํด๋ณผ๊น์?
|
||
enum APIConstants: String { | ||
|
||
case getBookInfo = "/v1/search/book.json" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๊ฑด static let ์ด ์๋ case ๋ก ๋ง๋ ์ด์ ๊ฐ ์๋์?
|
||
import Foundation | ||
|
||
enum APIConstants: String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Constant ๋ฅผ ๋ง๋ ๊ฑด ์ข์ง๋ง, ๋๋ฌด ์งฌ๋ฝ์ผ๋ก ๊ตฌํ๋์ด ์๋ ๊ฒ ๊ฐ์์
string ๊ฐ, api url, success ๋ฑ ๊ตฌ๋ถ์ ์กฐ๊ธ ํด๋ณผ๊น์?
let link: String | ||
let image: String | ||
let author, discount, publisher, pubdate: String | ||
let isbn, description: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isbn
์ด ๋ญ๊ฐ์...?
.font(.footnote) | ||
.frame(width: 100, height: 230) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ์ ํ ์ค๋ฐ๊ฟ๋ ๊ฐ๋ ์ฑ์ ์ฆ๊ฐ์ํฌ ์ ์๋ ๋ฐฉ๋ฒ์ ๋๋ค.
.fontWeight(.bold) | ||
.lineLimit(2) | ||
.fixedSize(horizontal: false, vertical: true) | ||
Text(blog.bloggername) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์นด๋ฉ์ผ์ด์ค
.lineLimit(2) | ||
.fixedSize(horizontal: false, vertical: true) | ||
Text(blog.bloggername) | ||
Text(blog.postdate).foregroundColor(.indigo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์นด๋ฉ
.aspectRatio(contentMode: .fit) | ||
.frame(width: 80, height: 120, alignment: .center) | ||
case .failure: | ||
Image(systemName: "questionmark.square") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
image name string๋ ๋ฐ๋ก๋ชจ์์ ์ฒ๋ฆฌํ๋ ๋ถ๋ถ์ด ์์ผ๋ฉด ์ข์๊ฒ๊ฐ์์ ใ ใ
๐ week5 ๊ณผ์ PR
๐ฑ PR ํฌ์ธํธ
๐ฑ ๊ตฌํํ ๊ณผ์ ๋ด์ฉ
๐ฑ ๋ ์๊ฐํ ์
SwiftUI encountered an issue when pushing aNavigationLink. Please file a bug.
๋ผ๋ ์ค๋ฅ๋ฌธ๊ตฌ๊ฐ ํ๋ฆฐํธ ๋๋๋ฐ ์ ๊ฐ ์๋ํ ๋๋ก ์ ์๋ํ์ง ์์์ ๋งํ๊ณ ์๋ ์ํฉ์ด๊ณ ํด๊ฒฐ๋ฐฉ๋ฒ์ ์ฐพ๊ณ ์์ต๋๋ค..๐ธ ๊ณผ์ ์ฌ์ง