---
sourceDocument: 호주 API 참조
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/api-reference

 Release :

    - australia

ft:locale :

    - ko-KR

ft:publication_title :

    - 호주 API 참조

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# NowWebViewController 클래스 - iOS

# NowWebViewController 클래스 - iOS {#ariaid-title1}

* 릴리스 버전: Australia
* 
* 업데이트 날짜 2026년 03월 12일
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 소요 시간: 2분

NowWebViewController 클래스는 웹 뷰어를 관리할 수 있는 함수를 제공합니다.

## NowWebViewController - loadPage() {#ariaid-title2}

요청이 인증되면 makeWebViewController() 메서드를 사용하여 인스턴스화 중에 제공된 초기 URL 로드를 시작합니다.
요청이 인증에 실패하면 개체를 인스턴스화할 때 전달된 대리자에서 nowWebViewController(_:didFailNavigationWith:) 메서드가 호출됩니다.
{#NWVC-loadPage__table_ymy_tpy_5pb__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 안 함 |   |   |
[표 1. 매개변수]

{#NWVC-loadPage__table_ymy_tpy_5pb} {#NWVC-loadPage__table_zmy_tpy_5pb__entry__2}

| 유형 | 설명 |
|-|-|
| 없음 |   |
[표 2. 반환]

{#NWVC-loadPage__table_zmy_tpy_5pb}  
다음 코드 예제에서는 이 함수를 호출하는 방법을 보여 줍니다.

    private func openScreen(_ screen: ArticleListViewModel.Screen) {
      switch screen {
      case .articleDetail(let sysId):
        guard let url = URL(string: "/mesp?id=me_kb_view&sys_kb_id=\(sysId)"), let webViewController = webViewController(for: url) else {
          debugPrint("Could not create web view")
          return
        }
        webViewController.loadPage()
        navigationController?.pushViewController(webViewController, animated: true)
      }
    }

## NowWebViewController - updateTheme(themeColors: NowWebThemeable) {#ariaid-title3}

지정된 UI 테마를 사용 하 여 NowWebView 테마를 업데이트 합니다. 이 함수를 사용하면 테마를 밝은 색에서 어두운 색으로 변경할 때와 같이 makeWebViewController() 함수를 사용하여 처음 설정한 후 웹 UI 테마를 업데이트할 수 있습니다.
{#NWVC-updateTheme_O__table_i4g_dww_x2c__entry__3}

| 이름 | 유형 | 설명 |
|-|-|-|
| 테마 색상 | [NowWeb테마 가능](https://servicenow-prod.fluidtopics.net/PnUf0ch4zz5e7RAU6MQZ4g "NowWebThemeable 프로토콜은 인스턴스에 호스팅 ServiceNow 된 웹 페이지 내에서 사용되는 색을 네이티브 웹 뷰에서 재정의할 수 있는 속성을 제공합니다.") | 웹 UI를 업데이트할 테마입니다. |
[표 3. 매개변수]

{#NWVC-updateTheme_O__table_i4g_dww_x2c} {#NWVC-updateTheme_O__table_j4g_dww_x2c__entry__2}

| 유형 | 설명 |
|-|-|
| 없음 |   |
[표 4. 반환]

{#NWVC-updateTheme_O__table_j4g_dww_x2c}  
다음 코드 예제는 updateTheme() 함수를 사용하여 makeWebViewController() 함수를 사용하여 구현된 밝은 UI 테마를 어두운 UI 테마로 업데이트하는 방법을 보여줍니다.

    func nowWebViewController(_ nowWebViewController: NowWebViewController, systemThemeDidChange traitCollection: UITraitCollection) {
      // The systemThemeDidChange delegate method can be used to call updateTheme() to apply theme changes when the system theme changes.
      nowWebViewController.updateTheme(themeColors: traitCollection.userInterfaceStyle == .dark ? DarkNowWebTheme() : LightNowWebTheme())
    }


