-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 근처 인기 여행지(nearCities)를 서버로부터 도시 정보, 이미지 받아와서 출력하도록 변경 - 도시 검색시 나타나던 뷰 수정 - 도시 이미지를 Mock Image -> SF Symbol로 변경 - cell 레이아웃 조정 jeremy0405/airbnb/#5
- Loading branch information
1 parent
601365c
commit c70dd71
Showing
9 changed files
with
105 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
iOS/AirbnbApp/AirbnbApp/Source/Extension/Int+Extension.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// Int+Extension.swift | ||
// AirbnbApp | ||
// | ||
// Created by 김상혁 on 2022/05/31. | ||
// | ||
|
||
import Foundation | ||
|
||
extension Int { | ||
func convertIntoTime() -> String { | ||
if self / 60 == 0 { | ||
return "\(self)분" | ||
} | ||
|
||
let hour = self / 60 | ||
let minute = self % 60 | ||
|
||
return minute > 30 ? "\(hour + 1) 시간" : "\(Double(hour) + 0.5) 시간" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters