IOS
-
PinLayoutLayout Framework(SnapKit 같은)오토 레이아웃에 의존하지 않음간편하고 빠름(Auto Layout보다 8~12배 빠름) GitHub - layoutBox/PinLayout: Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fastFast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer] - layoutBox..
[iOS] PinLayoutPinLayoutLayout Framework(SnapKit 같은)오토 레이아웃에 의존하지 않음간편하고 빠름(Auto Layout보다 8~12배 빠름) GitHub - layoutBox/PinLayout: Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fastFast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer] - layoutBox..
2024.05.25 -
ChartsAndroid MPCharts와 유사Line, Pie, Bar 등등 여러 종류의 차트를 만들 수 있음설치 방법은 아래 github 링크를 참고 GitHub - ChartsOrg/Charts: Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart. - ChartsOrg/Chartsgithub.com Model샘플 데이터는 Upbit API(마켓 정보 조회 / 캔들 조회)를 사용하였다.종목 조회 / 종목 시세 조회 Model 만들기// 종목 조회s..
[iOS] Charts 라이브러리를 사용하여 Upbit 시세 그래프 그리기ChartsAndroid MPCharts와 유사Line, Pie, Bar 등등 여러 종류의 차트를 만들 수 있음설치 방법은 아래 github 링크를 참고 GitHub - ChartsOrg/Charts: Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart. - ChartsOrg/Chartsgithub.com Model샘플 데이터는 Upbit API(마켓 정보 조회 / 캔들 조회)를 사용하였다.종목 조회 / 종목 시세 조회 Model 만들기// 종목 조회s..
2024.05.04 -
1. TextField 선언하기private lazy var textView: UITextView = { let textView = UITextView() textView.delegate = self textView.textColor = .secondaryLabel textView.font = .systemFont(ofSize: 16.0, weight: .medium) textView.text = "" // PlaceHolder Text 입력 return textView}() 2. UITextViewDelegate - textViewDidBeginEditing 사용extension ViewController: UITextViewDelegate{ func textVie..
[iOS] UITextField PlaceHolder1. TextField 선언하기private lazy var textView: UITextView = { let textView = UITextView() textView.delegate = self textView.textColor = .secondaryLabel textView.font = .systemFont(ofSize: 16.0, weight: .medium) textView.text = "" // PlaceHolder Text 입력 return textView}() 2. UITextViewDelegate - textViewDidBeginEditing 사용extension ViewController: UITextViewDelegate{ func textVie..
2024.03.24 -
WKScriptMessageHandler(Protocol) 웹페이지에서 실행되는 JavaScript 코드로부터 메시지를 수신하기 위한 인터페이스 웹 뷰 안에서 JavaScript message를 앱에서 응답하는 방법 특히 MessageHandler를 타겟으로 메시지를 전송하면 WebKit에서는 userContentController(_:didReceive:) 함수를 호출 JavaScript에서 MessageHandler를 호출하려면 아래 함수를 호출 window.webkit.messageHandlers..postMessage() WKMessageHandler에서 의 값을 지정 userContentController(_:didReceive:) 웹페이지가 script message를 전송했을 때 func u..
[iOS] WKScriptMessageHandlerWKScriptMessageHandler(Protocol) 웹페이지에서 실행되는 JavaScript 코드로부터 메시지를 수신하기 위한 인터페이스 웹 뷰 안에서 JavaScript message를 앱에서 응답하는 방법 특히 MessageHandler를 타겟으로 메시지를 전송하면 WebKit에서는 userContentController(_:didReceive:) 함수를 호출 JavaScript에서 MessageHandler를 호출하려면 아래 함수를 호출 window.webkit.messageHandlers..postMessage() WKMessageHandler에서 의 값을 지정 userContentController(_:didReceive:) 웹페이지가 script message를 전송했을 때 func u..
2024.03.16 -
WKUIDelegate(Protocol) : 웹페이지를 대신하여 기본 UI 요소를 표시하는 방법 새 창이 열리는 것을 제어 사용자가 요소를 클릭했을 때 표시되는 기본 메뉴 Item의 동작을 강화 기타 UI 관련 작업 수행 JavaScript 또는 기타 플러그인 콘텐츠를 처리하는 결과로 호출 WKUIDelegate | Apple Developer Documentation The methods for presenting native user interface elements on behalf of a webpage. developer.apple.com webView(_:createWebViewWith:for:windowFeatures:) 새로운 웹뷰를 생성 webView(_:createWebViewWith:..
[iOS] WKUIDelegateWKUIDelegate(Protocol) : 웹페이지를 대신하여 기본 UI 요소를 표시하는 방법 새 창이 열리는 것을 제어 사용자가 요소를 클릭했을 때 표시되는 기본 메뉴 Item의 동작을 강화 기타 UI 관련 작업 수행 JavaScript 또는 기타 플러그인 콘텐츠를 처리하는 결과로 호출 WKUIDelegate | Apple Developer Documentation The methods for presenting native user interface elements on behalf of a webpage. developer.apple.com webView(_:createWebViewWith:for:windowFeatures:) 새로운 웹뷰를 생성 webView(_:createWebViewWith:..
2024.03.16 -
WKNavigationDelgate 웹뷰의 탐색(navigation) 변경사항을 수락 또는 거부하고 탐색 요청 진행 상황을 추적하는 방법 WKNavigationDelegate | Apple Developer Documentation Methods for accepting or rejecting navigation changes, and for tracking the progress of navigation requests. developer.apple.com webView(_:decidePolicyFor:preferences:decisionHandler:) 웹 페이지의 탐색 허용 여부를 결정할 때 webView(_:decidePolicyFor:preferences:decisionHandler:) | Ap..
[iOS] WKNavigationDelegateWKNavigationDelgate 웹뷰의 탐색(navigation) 변경사항을 수락 또는 거부하고 탐색 요청 진행 상황을 추적하는 방법 WKNavigationDelegate | Apple Developer Documentation Methods for accepting or rejecting navigation changes, and for tracking the progress of navigation requests. developer.apple.com webView(_:decidePolicyFor:preferences:decisionHandler:) 웹 페이지의 탐색 허용 여부를 결정할 때 webView(_:decidePolicyFor:preferences:decisionHandler:) | Ap..
2024.03.16