Skip to content

Commit

Permalink
fixes various Swift 3.0 depreciation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Herrmann committed Apr 7, 2016
1 parent 057cf6a commit 66f5db3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SwiftyMarkdown/SwiftyMarkdown.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public class SwiftyMarkdown {

var skipLine = false
for theLine in lines {
lineCount++
lineCount += 1
if skipLine {
skipLine = false
continue
Expand Down Expand Up @@ -291,7 +291,7 @@ public class SwiftyMarkdown {
while matchedCharacters.containsString("\\") {
if let hasRange = matchedCharacters.rangeOfString("\\") {

let newRange = Range(start: hasRange.startIndex, end: hasRange.endIndex.advancedBy(1))
let newRange = hasRange.startIndex...hasRange.endIndex
foundCharacters = foundCharacters + matchedCharacters.substringWithRange(newRange)

matchedCharacters.removeRange(newRange)
Expand All @@ -306,9 +306,10 @@ public class SwiftyMarkdown {

// Make H1

func attributedStringFromString(string : String, withStyle style : LineStyle, var attributes : [String : AnyObject] = [:] ) -> NSAttributedString {
func attributedStringFromString(string : String, withStyle style : LineStyle, attributes : [String : AnyObject] = [:] ) -> NSAttributedString {
let textStyle : String
var fontName : String?
var attributes = attributes

// What type are we and is there a font name set?

Expand Down

0 comments on commit 66f5db3

Please sign in to comment.