Skip to content

Commit 03f8ef5

Browse files
committed
- Fullwidth now includes digits and punctuation
- Update WhatsNewView
1 parent 86922ad commit 03f8ef5

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

WordArt.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@
326326
ASSETCATALOG_COMPILER_APPICON_NAME = "iMessage App Icon";
327327
CODE_SIGN_ENTITLEMENTS = WordArtMessage/WordArtMessage.entitlements;
328328
CODE_SIGN_STYLE = Automatic;
329-
CURRENT_PROJECT_VERSION = 1;
329+
CURRENT_PROJECT_VERSION = 2;
330330
DEVELOPMENT_TEAM = 4KVDEM64KR;
331331
GENERATE_INFOPLIST_FILE = YES;
332332
INFOPLIST_FILE = WordArtMessage/Info.plist;
@@ -353,7 +353,7 @@
353353
ASSETCATALOG_COMPILER_APPICON_NAME = "iMessage App Icon";
354354
CODE_SIGN_ENTITLEMENTS = WordArtMessage/WordArtMessage.entitlements;
355355
CODE_SIGN_STYLE = Automatic;
356-
CURRENT_PROJECT_VERSION = 1;
356+
CURRENT_PROJECT_VERSION = 2;
357357
DEVELOPMENT_TEAM = 4KVDEM64KR;
358358
GENERATE_INFOPLIST_FILE = YES;
359359
INFOPLIST_FILE = WordArtMessage/Info.plist;
@@ -496,7 +496,7 @@
496496
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
497497
CODE_SIGN_ENTITLEMENTS = WordArt/WordArt.entitlements;
498498
CODE_SIGN_STYLE = Automatic;
499-
CURRENT_PROJECT_VERSION = 1;
499+
CURRENT_PROJECT_VERSION = 2;
500500
DEVELOPMENT_ASSET_PATHS = "\"WordArt/Preview Content\"";
501501
DEVELOPMENT_TEAM = 4KVDEM64KR;
502502
ENABLE_PREVIEWS = YES;
@@ -532,7 +532,7 @@
532532
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
533533
CODE_SIGN_ENTITLEMENTS = WordArt/WordArt.entitlements;
534534
CODE_SIGN_STYLE = Automatic;
535-
CURRENT_PROJECT_VERSION = 1;
535+
CURRENT_PROJECT_VERSION = 2;
536536
DEVELOPMENT_ASSET_PATHS = "\"WordArt/Preview Content\"";
537537
DEVELOPMENT_TEAM = 4KVDEM64KR;
538538
ENABLE_PREVIEWS = YES;

WordArt/Helpers.swift

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -249,15 +249,11 @@ class FancyTextModel: ObservableObject {
249249
for i in 0..<stringAsUnicode.count {
250250
let num = stringAsUnicode[i]
251251
let thisChar = Character(UnicodeScalar(num) ?? UnicodeScalar(0))
252-
if thisChar == " " {
253-
fullWidth.value += " "
254-
} else if thisChar == "." {
255-
fullWidth.value += ""
256-
} else if !thisChar.isLetter {
257-
fullWidth.value += String(thisChar)
258-
} else {
252+
if thisChar.isASCII {
259253
fullWidth.value += String(UnicodeScalar(num + 65248) ?? UnicodeScalar(0))
260-
} // if-else
254+
} else {
255+
fullWidth.value += String(thisChar)
256+
}// if-else
261257
} // for
262258
return fullWidth
263259
} // fullWidth

WordArt/Views/WhatsNewView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ struct WhatsNewView: View {
5050
startPoint: .bottomTrailing,
5151
endPoint: .topLeading))
5252
HelpBox(label: "Fixed an issue where full width wouldn't properly display punctuation.", icon: nil)
53+
HelpBox(label: "Full width characters now include digits and punctuation.", icon: nil)
5354
HelpBox(label: "Combining marks now skip punctuation and spaces for better readability.", icon: nil)
5455
HelpBox(label: "Added additional combining marks.", icon: nil)
5556
}

0 commit comments

Comments
 (0)