Web Views

iOS WKWebView의 다양한 옵션을 직접 체험해보세요. 컨트롤 패널에서 속성을 변경하면 iPhone 화면에 즉시 반영됩니다.

9:41
●●●● WiFi 🔋
apple.com

Welcome

Discover amazing products designed for everyone.

Experience innovation at its finest. Our latest products combine cutting-edge technology with elegant design to create something truly extraordinary.

From powerful chips to stunning displays, every detail has been carefully considered to deliver the best possible experience.

Privacy is a fundamental human right. We design our products and services to protect your personal information and put you in control.

⚠️ HIG 위반: 웹뷰 사용이 부적절합니다
📚 HIG Guidelines — 직접 체험하기
✓ Do — 올바른 예시
✗ Don't — 나쁜 예시

✓ 이렇게 하세요

  • Show loading state with a progress indicator
  • Handle navigation errors gracefully
  • Use SFSafariViewController for general web browsing
  • Respect the user's content blockers

✗ 이렇게 하지 마세요

  • Replace native UI with web content unnecessarily
  • Hide the URL bar for untrusted content
  • Disable standard navigation gestures
  • Load content without HTTPS

👆 iPhone 미리보기에서 나쁜 패턴을 직접 확인해보세요

Show Navigation Bar
Show Progress Bar
Allow Zoom
Default
Dark
Reader
SwiftUI Code
import WebKit struct WebView: UIViewRepresentable { let url: URL func makeUIView(context: Context) -> WKWebView { let config = WKWebViewConfiguration() let webView = WKWebView(frame: .zero, configuration: config) webView.allowsBackForwardNavigationGestures = true return webView } func updateUIView(_ webView: WKWebView, context: Context) { webView.load(URLRequest(url: url)) } }