From fdf7b9c63d24add60de997c4d5b4b6716889142a Mon Sep 17 00:00:00 2001 From: Yan Li Date: Wed, 24 Feb 2016 23:04:55 +0800 Subject: [PATCH] Sample clean up --- demo/demo/ViewController.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/demo/demo/ViewController.swift b/demo/demo/ViewController.swift index 4f10e1d..21f8b08 100644 --- a/demo/demo/ViewController.swift +++ b/demo/demo/ViewController.swift @@ -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)), ] } @@ -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; }