-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: Category 텍스트 필드로 수정 * refactor: 텍스트뷰에서 텍스트필드로 변경 * feat: colorWell로 색상 선택 기능 추가
- Loading branch information
1 parent
1deca01
commit df8f7f8
Showing
6 changed files
with
96 additions
and
126 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/FlipMate/FlipMate/Data/Extension/UIColor++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 @@ | ||
// | ||
// UIColor++Extension.swift | ||
// FlipMate | ||
// | ||
// Created by 신민규 on 11/26/23. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UIColor { | ||
func toHexString() -> String { | ||
var red: CGFloat = 0 | ||
var green: CGFloat = 0 | ||
var blue: CGFloat = 0 | ||
var alpha: CGFloat = 0 | ||
getRed(&red, green: &green, blue: &blue, alpha: &alpha) | ||
let rgb: Int = (Int)(red*255) << 16 | (Int)(green*255) << 8 | (Int)(blue*255) << 0 | ||
|
||
return String(format: "#%06x", rgb) | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
iOS/FlipMate/FlipMate/Data/Extension/UITextField++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,16 @@ | ||
// | ||
// UITextField++Extension.swift | ||
// FlipMate | ||
// | ||
// Created by 신민규 on 11/26/23. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UITextField { | ||
func addLeftPadding(width: Int) { | ||
let paddingView = UIView(frame: CGRect(x: 0, y: 0, width: width, height: Int(self.frame.height))) | ||
self.leftView = paddingView | ||
self.leftViewMode = ViewMode.always | ||
} | ||
} |
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
91 changes: 0 additions & 91 deletions
91
iOS/FlipMate/FlipMate/Presentation/TimerScene/View/CategoryTitleTextView.swift
This file was deleted.
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