iOS


GeometryReaderA container view that defines its content as a function of its own size and coordinate space.→ content의 고유한 Size와 좌표 공간의 함수로 정의하는 Container View→ 자식 뷰에 부모 뷰와 기기에 대한 크기 및 좌표계 정보를 전달하는 기능을 수행함GeometryReader{ _ in Circle().fill(Color.purple) .frame(width: 200, height: 200) .overlay(Text("Center").font(.title))}.background(Color.gray) GeometryProxy@available(iOS 13.0, ..


List하나의 열에 여러 개의 행으로 표현되는 UI를 구성해 다중 데이터를 쉽게 나열할 수 있는 구성된 ViewUIKit에서 동일한 역할을 하던 UITableView와 비교적 사용법이 간소화 됨List{ ForEach(0.. 동적 콘텐츠에서 사용 방식Range 동적 콘텐츠로 Range 타입을 넘겨줌Half-Open Range Operator(Range) A.. 다른 범위 연산자는 사용 불가List(0..RandomAccessCollection Protocol1. id로 사용할 값을 직접 인수로 지정// Hashable 프로토콜 준수 시에는 간편하게 self로 사용List(["A", "B", "C", "D", "E"], id: \.self){ Text("\($0)")} 2. Identifiabl..


서버에서 받은 쿠키를 이용하여 웹뷰에 넣어서 사용한다고 작업 내용이 전달되었다. 일단 서버에서 HTTP통신으로 헤더(HttpResponse)로 쿠키를 가져왔다.// HttpResponse에서 쿠키로 변경func convertHTTPResponseToCookies(httpResponseHeaders: [AnyHashable: Any]) -> [HTTPCookie] { var cookies: [HTTPCookie] = [] if let headers = httpResponseHeaders as? [String: String] { for (key, value) in headers { if key.lowercased() == "Set-cookie" { ..


openSettingsURLString | Apple Developer DocumentationThe URL string you use to deep link to your app’s custom settings in the Settings app.developer.apple.comif let url = URL(string: UIApplication.openSettingsURLString){ UIApplication.shared.open(url)} 응용[앱 이름]>[알림]에서\n알림을 허용해" data-og-host="dev-geeyong.tistory.com" data-og-source-url="https://dev-geeyong.tistory.com/74" data-og-url="https://..


기존변경출처 How do I put the image on the right side of the text in a UIButton?I don't want to use a subview if I can avoid it. I want a UIButton with a background image, text, and an image in it. Right now, when I do that, the image is on the left side of the text. The backg...stackoverflow.com


오류다른 ViewController에서 동시에 한 개의 webView를 사용하고 있던 중 아래 오류가 발생하였다.Completion handler passed to [webView:decidePolicyForNavigationAction:decisionHandler:] was called more than once원인webView에서 decideHandler나 completionHandler의 호출은 한 번 밖에 되지 않는다.해결CompletionHandlerWrapper Class를 선언하여 webView에 적용class CompletionHandlerWrapper { private var completionHandler: ((Element) -> Void)? private let defaultVa..