일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- process
- Swift
- flutter #state # stateful #stateless
- stanford
- xcode
- SwiftUI
- 오늘의 색상
- 알고리즘
- 프로젝트회고
- 새싹후기
- UIKit
- 스터디
- ImageSlider
- 프로그래머스
- 청년취업사관학교후기
- 백준
- collectionView
- xml
- MVVM
- 조건문
- flutter
- WidgetTree
- UserDefault
- IOS
- 코딩테스트
- 스위프트
- colorofdays
- GIT
- CS193p
- Masil
- Today
- Total
목록CS193p (2)
개발을 시작하는 이야기

강의 보기 : YouTube :: Stanford Collections of Identifiable Identifiable A class of types whose instances hold the value of an entity with stable identity. 인스턴스가 안정적으로 구분될 수 있는 엔티티 값을 가지도록 하는 타입의 클래스 func choose(_ card: Card) { if let index = cards.firstIndex(where: { $0.id == card.id }) { cards[index].isFaceUp = true } } Color vs UIColor vs CGColor Color color-specifier : foregroundColor(Color.gree..

강의 보기 : Youtube :: Stanford rotation3DEffect 카드를 선택했을 때 fade 효과나 scale 같은 효과가 아닌, 카드를 뒤집는 효과를 주기 위해 Cardify의 ZStack에 rotation3DEffect 효과를 주었다. 뒤집는 효과를 주기 위해 axis의 y축에만 효과를 주었다. 카드는 정상적으로 뒤집을 수 있지만 다른 곳에서 문제가 발생했다. 카드를 뒤집기 시작하는 순간부터 카드가 미처 다 돌아가지 않았음에도 이모지가 서서히 나타나기 시작하는 문제가 발생했다. 이는 이모지를 보여주는 content를 opacity효과를 주면서 (isFaceUp ? 1:0)의 변화에 의존하기 때문이다. struct Cardify: ViewModifier { var isFaceUp: Bo..