Skip to content

Commit

Permalink
Enabled hyphenation.
Browse files Browse the repository at this point in the history
  • Loading branch information
macguru committed Oct 1, 2013
1 parent c07949c commit adbf6bb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 60 deletions.
4 changes: 2 additions & 2 deletions TextKitDemo/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
<fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
<view multipleTouchEnabled="YES" contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ZV7-VL-Kd8">
<view multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ZV7-VL-Kd8">
<rect key="frame" x="5" y="230" width="153" height="220"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.90745137320500002" green="1" blue="0.95263400625740391" alpha="1" colorSpace="calibratedRGB"/>
</view>
<view multipleTouchEnabled="YES" contentMode="scaleToFill" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="auf-0B-h3H">
<view multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="auf-0B-h3H">
<rect key="frame" x="163" y="230" width="152" height="220"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.90745137320500002" green="1" blue="0.95263400625740391" alpha="1" colorSpace="calibratedRGB"/>
Expand Down
3 changes: 3 additions & 0 deletions TextKitDemo/Interaction/TKDInteractionViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ - (void)viewDidLoad
// Set up circle pan
[self.circleView addGestureRecognizer: [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(circlePan:)]];
[self updateExclusionPaths];

// Enable hyphenation
self.textView.layoutManager.hyphenationFactor = 1.0;
}


Expand Down
22 changes: 0 additions & 22 deletions TextKitDemoTests/TextKitDemoTests-Info.plist

This file was deleted.

34 changes: 0 additions & 34 deletions TextKitDemoTests/TextKitDemoTests.m

This file was deleted.

2 changes: 0 additions & 2 deletions TextKitDemoTests/en.lproj/InfoPlist.strings

This file was deleted.

0 comments on commit adbf6bb

Please sign in to comment.