• Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

WKWebview with persistent cookies support

YWebView

CI Status Coverage Status Version License Platform

The primary codes are copied from an answer of SO. All cookies will be loaded from NSHTTPCookieStorage. When a web page is loaded, its cookies will be save to NSHTTPCookieStorage as well. This method allows cookie sharing among multiple WKWebView and UIWebView.

If you want to remove all cookies, use

NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
for (NSHTTPCookie *cookie in cookieStorage.cookies) {
    [cookieStorage deleteCookie:cookie];
}

Usage

Just use YWebView as the ordinary WKWebView.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 8.0 (the minimum requirement for WKWebView)

Installation

YWebView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "YWebView"

Author

Hai Feng Kao, [email protected]

License

YWebView is available under the MIT license. See the LICENSE file for more info.

More Repositories

1

KVOMutableArray

An NSMutableArray which can be key value observed (KVO). You can use block or RACSignal (ReactiveCocoa) to monitor the mutable array change.
Objective-C
88
star
2

SqliteSubstringSearch

An open source tokenizer which supports fast substring search with sqlite FTS (full text search)
C
82
star
3

PodAsset

Unable to find cocoapods resources? Here is the solution!
Objective-C
55
star
4

nfasd

fasd for neovim
Python
28
star
5

SwiftUI-Navigation-Bar-Color

Change SwiftUI Navigation Bar Color for different View
Swift
22
star
6

WZProtocolInterceptor

a intermediate proxy class to forward Objective-C delegate messages for iOS platforms
Objective-C
22
star
7

HFViewBinding

bind UITableView or UICollectionView to an array in MVVM architecture
Objective-C
14
star
8

CHScrollView

An open source implementation of UIScrollView
Objective-C
11
star
9

LeakCanaryiOS

Memory leak detection in iOS unit test
Objective-C
9
star
10

SwiftUITemplate

An opinionated SwiftUI project template for tuist
Swift
7
star
11

StellairsLoadOrderFixer24

Stellairs load order fixer for 2.4
Python
6
star
12

ResumableCombine

Handle backpressure in Swift Combine gracefully
Swift
6
star
13

ycm_extra_config

a working .ycm_extra_config.py for iOS development
Python
4
star
14

SwiftUI-Pull-To-Refresh

Customizable SwiftUI pull down/up to refresh
Swift
4
star
15

RACSerialCommand

A queue for ReactiveCocoa
Objective-C
3
star
16

RACSerialQueue

A queue for ReactiveCocoa
Objective-C
2
star
17

AlwaysOpenWorkspace

Automatically open VSCode workspace by finding the project root (identified by presence of known directory or file).
TypeScript
2
star
18

SwiftFun01

functional programming in swift example
Swift
2
star
19

DeclarativeProgrammingCocoaHeads

demo for swift declarative programming at CocoaHeads Taipei
Swift
1
star
20

SwiftRexDemo

redux demo for CocoaHeads Taipei by SwiftRex
Swift
1
star
21

ReactiveCache

A reactive cache for iOS
Objective-C
1
star
22

InsertLeftBracket.nvim

automatically insert left square bracket for objective-c
Ruby
1
star
23

libclang-experiments-py

parse objective-c source code with libclang python interface
C
1
star