Open
Conversation
iiuoon
reviewed
Nov 26, 2023
Comment on lines
+375
to
+379
| isa = XCSwiftPackageProductDependency; | ||
| package = 2D6D0B0B2B0BCBF2007F19CA /* XCRemoteSwiftPackageReference "SnapKit" */; | ||
| productName = "SnapKit-Dynamic"; | ||
| }; | ||
| /* End XCSwiftPackageProductDependency section */ |
Member
There was a problem hiding this comment.
혹시 시뮬레이터 실행 잘 되셨나요?
스냅킷 추가하실 때는 SnapKit-Dynamic 말고 그냥 SnapKit 하나만 추가해주세요!
Comment on lines
+164
to
+165
| make.leading.equalTo(view.safeAreaLayoutGuide.snp.leading).offset(36) | ||
| make.trailing.equalTo(view.safeAreaLayoutGuide.snp.trailing).offset(-36) |
Member
There was a problem hiding this comment.
make.leading.trailing.equalTo(view.safeAreaLayoutGuide.snp.leading).inset(36) 한 줄로 가능합니다!
| } | ||
| number1TextField.snp.makeConstraints { make in | ||
| make.top.equalToSuperview().offset(111) | ||
| make.centerX.equalToSuperview() |
Member
There was a problem hiding this comment.
inset을 적용했다면 centerX를 해주지 않아도 됩니다
- leading, trailing inset 적용
- centerX 적용, width 지정
두 방법이 있습니다
Comment on lines
+25
to
+32
| textField.layer.borderWidth = 1 | ||
| textField.layer.borderColor = UIColor.black.cgColor | ||
| textField.backgroundColor = .white | ||
| textField.placeholder = "숫자 1 입력" | ||
|
|
||
| let paddingView = UIView(frame: CGRect(x: 0, y: 0, width: 10, height: textField.frame.height)) | ||
| textField.leftView = paddingView | ||
| textField.leftViewMode = .always |
Member
There was a problem hiding this comment.
textField.borderStyle = .roundedRect 사용하시면 둥근 모서리와 왼쪽 패딩 모두 해결할 수 있습니다
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 Description
계산기 만들기 완료했습니다.
📝 Progress