Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account


Drag&Drop 별 평점 평가 #129

Open
ebPark9511 opened this issue Oct 11, 2021 · 1 comment
Open


Drag&Drop 별 평점 평가 #129

ebPark9511 opened this issue Oct 11, 2021 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@ebPark9511
Copy link
Collaborator


Drap&Drop 별 평점 평가 작업완료

ezgif-6-c187b0bf831b

❗️사용방법

구성

스크린샷 2021-08-30 오후 10 28 48

  1. 사용하고자 하는 곳에 UIView를 추가한다.
  2. UIView를 클릭하고 Attributes Inspector에서 Custom ClassRatingView로 변경한다.
  3. Attributes Inspector의 User defined runtime attributes 를 필요에 따라 지정한다.
// User defined runtime attributes 지정가능 옵션

// imageView 
imageName 
highlightColor
count // image의 전체 개수

//StackView
spacing
index // 초기 시작 인덱스

Delegate Method

// RatingView Delegate Method
 
protocol RatingViewDelegate: AnyObject {
    func didChangeIndex(_ index: Int)
}
 

기타사항

  • 구성 이후 @IBOutlet으로 연결하여 접근 가능합니다.
  • constraintRatingViewwidth, hegithprioritylow(250)로 설정시 content size로 잡힙니다.
@ebPark9511 ebPark9511 added the documentation Improvements or additions to documentation label Oct 11, 2021
@ebPark9511 ebPark9511 self-assigned this Oct 11, 2021
@ebPark9511
Copy link
Collaborator Author

#132 관련하여
별 평점은 0점으로 처리할수 있는지 체크 필요함.

@ebPark9511 ebPark9511 reopened this Oct 12, 2021
@ebPark9511 ebPark9511 added question Further information is requested and removed documentation Improvements or additions to documentation labels Oct 12, 2021
@ebPark9511 ebPark9511 changed the title 
Drap&Drop 별 평점 평가 
Drag&Drop 별 평점 평가 Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant