1/* 2 * Copyright (c) 2020 The Khronos Group Inc. 3 * Copyright (c) 2020 Valve Corporation 4 * Copyright (c) 2020 LunarG, Inc. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 * 18 * Author: Richard Wright <richard@lunarg.com> 19 */ 20 21#import "ViewController.h" 22 23@interface ViewController () 24 25@end 26 27@implementation ViewController 28 29- (void)viewDidLoad { 30 [super viewDidLoad]; 31 32 // Get the HTML version of the output and display it in a web view. 33 NSArray *docPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); 34 NSString *myPath = [docPath objectAtIndex:0]; 35 NSString *filePath = [myPath stringByAppendingPathComponent:@"/vulkaninfo.html"]; 36 37 NSURL *url = [NSURL fileURLWithPath:filePath]; 38 [webView loadFileURL:url allowingReadAccessToURL:url.URLByDeletingLastPathComponent]; 39} 40 41@synthesize webView; 42 43@end 44