-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Chore] #233 - EditDiaryView 래핑 및 기기대응 코드 개선
- Loading branch information
Showing
14 changed files
with
522 additions
and
247 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,20 @@ | ||
// | ||
// Double+.swift | ||
// Smeem-iOS | ||
// | ||
// Created by Joon Baek on 12/1/24. | ||
// | ||
|
||
import UIKit | ||
|
||
extension Double { | ||
// 너비 기반 스케일링 (iPhone 13 mini) | ||
func scaledByWidth() -> Double { | ||
return (self / 375) * UIScreen.main.bounds.width | ||
} | ||
|
||
// 높이 기반 스케일링 (iPhone 13 mini) | ||
func scaledByHeight() -> Double { | ||
return (self / 812) * UIScreen.main.bounds.height | ||
} | ||
} |
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
Oops, something went wrong.