본문 바로가기
FE 공부/Swift

Swift _ ProgressView

by 꼬질꼬질두부 2022. 11. 15.

 

 

 

A view that depicts the progress of a task over time.
: 다운로드와 같은 상황에서 일의 진행 정도를 묘사해주는 view

로딩이 얼마나 지속될 지 아는 경우 -> progress view 이용
로딩이 얼마나 지속될 지 모르는 경우 -> Activity Indicator 이용


Managing the progress bar

var progress: Float
The current progress of the progress view.
: progress view의 현재 진행 상태

 

func setProgress(Float, animated: Bool)
Adjusts the current progress of the progress view, optionally animating the change.
: progress view의 현재 진행 상태를 조정함

 

var observedProgress: Progress?
The progress object to use for updating the progress view.
: progress view를 업데이트하는데 사용하는 객체

Configuring the progress bar

 

 

var progressViewStyle: UIProgressView.Style
The current graphical style of the progress view.
: progress view의 그래픽 스타일

 

var progressTintColor: UIColor?
The color shown for the portion of the progress bar that’s filled.
: progress bar의 채워진 부분의 색깔

 

var progressImage: UIImage?
An image to use for the portion of the progress bar that’s filled.
: progress bar의 채워진 부분에 사용할 이미지

 

var trackTintColor: UIColor?
The color shown for the portion of the progress bar that isn’t filled.
: progress bar의 채워지지않은 부분의 색깔

 

var trackImage: UIImage?
An image to use for the portion of the track that isn’t filled.
: progress bar의 채워지지않은 부분에 사용할 이미지

'FE 공부 > Swift' 카테고리의 다른 글

Swift - Alert Controller  (0) 2022.11.22
Swift _ StackView  (0) 2022.11.15
Swift _ Activity Indicator View  (0) 2022.11.15
Swift _ Stepper  (0) 2022.11.15
Swift _ Switch button  (0) 2022.11.15

댓글