https://developer.apple.com/videos/play/wwdc2020/10052
Control appearance updates
iOS, iPadOS에서 새로운 Update가 적용되고 UIKit, SwiftUI 모두 다 해당된다
UISlider, UIProgressView


– Updates thickness : Track이 커졌다.
– Consistency across platforms
– Full mac control on optimized Catalyst apps (Some customization API unused)
UIActivityIndicatorView

– New, simpler design : 페달(Indicator의 원의 한 줄) 수가 줄어들고, 애니메이션 타이밍이 수정됨
– Use color API and modern styles
– “pull to refresh” 에서도 당연히 ! Update가 적용된다
UIPickerView

– Update styling
– Consider menus where appropriate
– Use menus on macOS
UIPageControl


– New interactions
– Unlimited pages
– Enhanced customization APIs
– optional custom indicators (날씨 App 하단의 PageControl 처럼 custom이 가능하게 된다 !!!! 꺅 ! !!!!!!)
– multiple styles
PageControl의
배경색 설정


PageControl의
Indicator 변경


PageControl의
특정 Indicator 변경


ColorPicker



macOS color paner 과 비슷해졌다.
ViewController로 제공되어 어플리케이션에서 present, pop로 열어 사용하면 된다.
Delegate method가 제공되어 유저가 선택한 색상을 알 수 있다.
Eye dropper tool 의 제공
Eye dropper tool


<실제 사용>

DatePicker
iOS, iPadOS
ColorPicker처럼 새로 제공되는 것은 아니지만 다재다능하게 그리고 UI가 좋아졌다.
Compact style on iOS


– Useful with space constraints
– Full modal calendar when selecting date
– Keyboard for selecting time
– Optionally limit to just date or time
Compact style on iPadOS
– wheel과 달리 화면의 일부분에서 modal로 표시되어서 화면 활용도가 높아진다
UIDatePicker New macOS style (10.15.4 ~)

– UILabel을 tap 하면 present 되어서 사용되거나 키보드로 직접 값을 입력할 수도 있다.
– Compact, modal calendar presentation
– supported in all Catalyst apps
– Optionally limit to just date or time (둘 다는 안됨)
<사용>

– pickerStyle은 .compact
– .japansese 로 설정하면 연호도 나온다 !!!!!!!
Menus


– iOS 14에서 BackButton을 꾹 누르면 나오는 Menu를 코드로 간단히 구현할 수 있게 되었다 ……………. (대충격과 감사)



UIActions
UIBarButtonItem

– init 에서 action을 함께 넣을 수 있게 되었다

– .fixedSpace 를 사용하면 Array 인데도 BarButton들의 간격까지 다 custom 할 수 있다 !!!!!
UIButton

– BarButton과 동일하게 init에서 Action을 지정할 수 있게 되었다 💫
– primaryAction = tap
UISegmentedControl

~ iOS 13

iOS 14

– addTarget도 case를 나눌 필요도 더이상 없다 !