[Feat] #259 - CustomButton 새로 구현 했습니다. #260
Merged
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.
🩵 Issue
close #259
💙 변경된 내용
새로운 커스텀 버튼을 다시 만들었어요!
기존 파일은 삭제 했어요!
1. 새로운 커스텀 버튼
꼭 필요한,
title,font,radius만 생성자로 받아줍니다. (디폴트 값이 존재하기 때문에 타이틀만 정해줘도 됩니다.[TerningCustomButton의 생성자]
2. Enabled 처리는 메서드 체이닝 방식 (디폴트 true)
3. 상태값에 따른 배경색 변경은 메서드를 활용하면 됩니다.
4. 생성자로 주입해준 title에서 새로운 title로 변경하고 싶을때
📘 ScreenShot
커스텀 버튼 사용하는 일부 뷰 캡처