{"id":15328992,"url":"https://github.com/shazron/sawkwebviewuidelegate","last_synced_at":"2025-04-04T11:44:19.024Z","repository":{"id":18559982,"uuid":"21761970","full_name":"shazron/SAWKWebViewUIDelegate","owner":"shazron","description":"Default UIDelegate for WKWebView to match UIWebView behaviour","archived":false,"fork":false,"pushed_at":"2014-07-12T08:17:32.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T21:41:12.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shazron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-12T07:25:15.000Z","updated_at":"2014-07-12T08:02:17.000Z","dependencies_parsed_at":"2022-09-17T13:51:20.877Z","dependency_job_id":null,"html_url":"https://github.com/shazron/SAWKWebViewUIDelegate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazron%2FSAWKWebViewUIDelegate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazron%2FSAWKWebViewUIDelegate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazron%2FSAWKWebViewUIDelegate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shazron%2FSAWKWebViewUIDelegate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shazron","download_url":"https://codeload.github.com/shazron/SAWKWebViewUIDelegate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174378,"owners_count":20896074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T09:45:55.875Z","updated_at":"2025-04-04T11:44:19.006Z","avatar_url":"https://github.com/shazron.png","language":"Objective-C","readme":"## SAWKWebViewUIDelegate\nhttps://github.com/shazron/SAWKWebViewUIDelegate\n\nA UIDelegate for WKWebView that is equal to the default UIDelegate behaviour in a UIWebView. iOS 8 only.\n\n\n### Usage\n```\nWKWebViewConfiguration* configuration = [[WKWebViewConfiguration alloc] init];\nconfiguration.userContentController = [[WKUserContentController alloc] init];\n\nWKWebView* webView = [[WKWebView alloc] initWithFrame:[[UIScreen mainScreen] bounds] configuration:configuration];\n```\n\n####  Method 1: uses CFBundleDisplayName for the title and the app rootViewController\n```\nSAWKWebViewUIDelegate* uiDelegate = [[SAWKWebViewUIDelegate alloc] init];\nwebView.UIDelegate = uiDelegate;\n```\n\n####  Method 2: specify the title and uses the app rootViewController\n```\nSAWKWebViewUIDelegate* uiDelegate = [[SAWKWebViewUIDelegate alloc] initWithTitle:@\"MyAppTitle\"];\nwebView.UIDelegate = uiDelegate;\n```\n\n####  Method 3: specify the title and specify the viewController\n```\nUIViewController* viewController = [UIApplication sharedApplication].delegate.window.rootViewController;\nSAWKWebViewUIDelegate* uiDelegate = [[SAWKWebViewUIDelegate alloc] initWithTitle:@\"MyAppTitle\" viewController:viewController];\nwebView.UIDelegate = uiDelegate;\n```\n\n### Issues\n\nhttps://github.com/shazron/SAWKWebViewUIDelegate/issues\n\n### License\n\nCopyright [2014] Shazron Abdullah\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshazron%2Fsawkwebviewuidelegate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshazron%2Fsawkwebviewuidelegate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshazron%2Fsawkwebviewuidelegate/lists"}