Skip to content

Commit

Permalink
Take the substring
Browse files Browse the repository at this point in the history
  • Loading branch information
mkassoff committed Apr 9, 2020
1 parent c91dfb4 commit c665984
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CalendarKit-Swift/SwiftCal/SwiftCal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ public class Read {
let methodScanner = Scanner(string: icsString)
methodScanner.scanUpTo("METHOD:", into: nil)
methodScanner.scanUpTo("\n", into: &methodString)

if let theMethodString = methodString {
calendar.method = String(theMethodString.substring(from: 7))
}

var timezoneId: NSString?
var timezoneOffset: NSString?

Expand Down

0 comments on commit c665984

Please sign in to comment.