Skip to content

Commit

Permalink
Sample clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeplum committed Feb 24, 2016
1 parent 59cf7e2 commit fdf7b9c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions demo/demo/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ extension ViewController

// Furiganas for 'サーモン刺身。狐、哺乳綱ネコ目(食肉目)イヌ科イヌ亜科の一部。'
Furigana(text: "きつね", original: "", range: NSMakeRange(59, 1)),
Furigana(text: "さしみ", original: "刺身", range: NSMakeRange(91, 2)),
Furigana(text: "", original: "", range: NSMakeRange(93, 1)),
Furigana(text: "さしみ", original: "刺身", range: NSMakeRange(46, 2)),
]
}

Expand All @@ -68,9 +67,6 @@ extension ViewController
contents.appendAttributedString(NSAttributedString(string: "サーモン刺身、哺乳綱ネコ目(食肉目狐)イヌ科イヌ亜科の一部。\n\n", attributes: [NSFontAttributeName : exampleFont]))
contents.addAttribute(NSForegroundColorAttributeName, value: UIColor.orangeColor(), range: NSMakeRange(59, 1))

contents.appendAttributedString(NSAttributedString(string: "サーモン刺身狐、哺乳綱ネコ目(食肉刺身目)イヌ科イヌ亜科の一部。", attributes: [NSFontAttributeName : exampleFont]))
contents.addAttribute(NSForegroundColorAttributeName, value: UIColor.redColor(), range: NSMakeRange(91, 2))

return contents;
}

Expand Down

0 comments on commit fdf7b9c

Please sign in to comment.