Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
2 changes: 1 addition & 1 deletion SwiftDemo/API/APIEndPoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extension PhotoEndPoint: RequestBuilder {
switch self {
case .PhotoList:
guard let url = URL(string: "https://jsonplaceholder.typicode.com/photos")
else {preconditionFailure("Invalid URL format")}
else {preconditionFailure("Invalid URL format ")}
let request = URLRequest(url: url)
return request

Expand Down
2 changes: 1 addition & 1 deletion SwiftDemo/HomeView/HomeViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PhotoViewModel: ObservableObject,PhotoService
.sink(receiveCompletion: { result in
switch result {
case .failure(let error):
print("Handle error: \(error)")
print("Handle error : \(error)")
case .finished:
break
}
Expand Down