使用斯威夫特的随机文本生成器应用程序
随机文本生成器
Xcode 14.2, iOS 16+
使用的技术
- 迅捷用户界面
实现的逻辑
- 用户可以使用按钮生成一些文本。生成的文本由字母数字字符组成,仅用空格分隔(为简单起见)。
- 此文本的长度各不相同,默认范围为 1 到 100 个单词。单词长度随 1 到 15 个字符的默认界限而变化。
- A user can see the generated text word count
- A user can edit the text, word count will update accordingly
Misc
- Added unit tests for generator
Screenshots
dark | light |
---|---|
To improve
- Separate words with punctuation and count words accordingly