Skip to content

WKWebView + Xcode 11.2.1 Updates#117

Merged
sgr-ksmt merged 1 commit intosgr-ksmt:masterfrom
speareducation:master
Nov 12, 2019
Merged

WKWebView + Xcode 11.2.1 Updates#117
sgr-ksmt merged 1 commit intosgr-ksmt:masterfrom
speareducation:master

Conversation

@rlester
Copy link
Copy Markdown
Contributor

@rlester rlester commented Nov 11, 2019

  • Replaced UIWebView with WKWebview.
  • Updated demo project to support swift 5.1 (Xcode 11.2.1).
  • Organized demo projects storyboards into one file.
  • Cleaned up linting / formating issues.
  • Fixed navigation issues with demo project.

- Updated demo project to support swift 5.1 (Xcode 11.2.1).
- Organized demo projects storyboards into one file.
- Cleaned up linting / formating issues.
- Fixed navigation issues with demo project.
public class func generated(by views: [UIView], dpi: DPIType = .default, password: PDFPassword = "") throws -> Data {

public class func generated(by views: [UIView], dpi: DPIType = .default, password: PDFPassword = "") throws -> Data {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 121 characters (line_length)


override func viewDidLoad() {
super.viewDidLoad()
let req = NSMutableURLRequest(url: URL(string: "http://www.yahoo.co.jp")!, cachePolicy: .reloadIgnoringCacheData, timeoutInterval: 60)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 142 characters (line_length)

}

override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! SampleTableViewCell
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Force Cast Violation: Force casts should be avoided. (force_cast)

var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 145 characters (line_length)

Copy link
Copy Markdown
Owner

@sgr-ksmt sgr-ksmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really appreciate your contribution.
I'll publish a new version of PDFGenerator after fixing code a bit and merge it.

@sgr-ksmt sgr-ksmt merged commit a2725d0 into sgr-ksmt:master Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants