Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 패스트캠퍼스후기
- commit
- 패캠챌린지
- 머티리얼 디자인
- Git Tutorial
- viewDidAppear
- 픽셀
- 뉴북
- ios
- SWIFT
- 직장인자기계발
- iOS앱개발올인원패키지Online.
- 마크다운
- git
- 포인트
- 플랫디자인
- commit messages
- 패스트캠퍼스
- .DS_Store
- git workflow
- viewDidLoad
- 디자인 트렌드
- 직장인인강
- 스큐어모피즘
- Xcodebuild
- 아이폰
- 뉴모피즘
- commit message
- 입력 개수 제한
- 8 그리드 시스템
Archives
- Today
- Total
왕논의 연구실
[라이브러리] UIKit으로 만드는 뉴모피즘 라이브러리 Synth 본문
https://github.com/CRED-CLUB/synth-ios
Embossed and Debossed views
Embossed View
let embossedView = UIView()
embossedView.applyneuStyle()
Debossed View
let debossedView = UIView()
debossedView.applyNeuStyle(model: NeuUIHelper.getDebossModel())
applyNeuStyle의 인자값은 model과 showOnlyShadows인데, showOnlyShadows의 기본값은 false이다. true로 하면 내부에도 그림자가 생겨서 전체적으로 둥그런 느낌을 준다.
Buttons
elevated soft button
let neuButton1 = UIButton()
self.neuButton1.applyNeuBtnStyle(type: .elevatedSoft, title: "Soft")
elevated soft round button
self.neuButton2.applyNeuBtnStyle(type: .elevatedSoftRound, image: UIImage(named: "plus"))
elevated flat button
self.neuButton3.applyNeuBtnStyle(type: .elevatedFlat, title: "Flat")
elevated flat round button
self.neuButton4.applyNeuBtnStyle(type: .elevatedFlatRound)
꼭 위와 같이 사용할 필요없다. 마지막 elevated flat round button 에서 보듯이 타입만 설정해도 된다. applyNeuBtnStyle함수를 작성하려하면 다양한 인자들을 설정할 수 있다.
https://github.com/ywangnon/SynthLibrarySample