You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
1. 정리내용은 미디엄에
주간 Steve 뉴스 23.10.23. 1. d2 language | by woozoobro | Oct, 2023 | Medium
2. Creating a Design System with SwiftUI
https://www.youtube.com/watch?v=Z7rJKr6Jlho&t=5s
What is Design System?
버튼을 만들어달라는 요청이 왔다고 해보자.
아 맞다!! 이미지도 넣어주세요
여기서 뭐가 문제인가?
버튼 스타일을 활용해볼까요?
아참! 찾기도 쉬워야겠죠
요렇게 .primary로 넘겨줄 수 있게 됐네요
새로운 기획이 도달한다...! 이미지랑 버튼 사이에 spacing을 넣어야 한대요
Button의 initialiser는 뭐지?
Button은 label type을 사용합니다.
What is a Label?
Label has a short initialiser for Text and Image
LabelStyle도 있다
Creating a label style
Apply a label style
Use the label style in our primary button style
Can we have load of lines in our button?
What if different button styles want to style the title and subtitle differently?
Create a semantic container
Style the semantic container
DynmaicProperty가 뷰 업뎃해줌
What's in a configuaration anyway?
Set the style in the environment
Provide a default style
Resolve the style
Use the style in the Detail View
DetailStyle with its default style
Style Detail inside PrimaryButtonStyle
Style Detail inside PrimaryButtonStyle
Button with the detail style
Create a Button convenience initialiser
Nested 된 Button의 간편한 initialiser
What if we don't want a caption
just put EmptyView()
Summary
Beta Was this translation helpful? Give feedback.
All reactions