Commit Graph

95 Commits

Author SHA1 Message Date
Angelo Stavrow
1b75950eb5
Revert "Set the post editor font in the updateUIView method (#237)" (#240)
This reverts commit d46eb639ad.
2022-12-29 09:26:18 -05:00
Angelo Stavrow
d46eb639ad
Set the post editor font in the updateUIView method (#237)
* Wrap becomeFirstResponder in async dispatch

This fixes issues when we’re updating the responder chain every time SwiftUI refreshes the view, which can have unpredictable side effects.

* Set the font in the updateUIView method

* Bump build number and update change log
2022-12-18 15:27:15 -05:00
Angelo Stavrow
1361ff7586
Write logs to new post (#236) 2022-12-06 16:41:12 -05:00
Angelo Stavrow
f256996161
Improve editor scrolling on ios (#229)
* Unset isScrollEnabled property on UITextViews

* Begin implementing common MultilineTextView

* Remove legacy text views

* Fix firstResponder issues

* Bump version and build number and update change log

* Fix smart-dashes replacement in MultilineTextView

* Wait 10ms before navigating to the editor after creating a new post

* Wait before navigating to editor after creating a new post

* Bump build number
2022-11-03 06:56:11 -04:00
Angelo Stavrow
20592e1b32
Add ITSAppUsesNonExemptEncryption property flag 2022-10-06 07:34:52 -04:00
Angelo Stavrow
4a3874abcd
Embed text editor fields into ScrollView (#227)
* Embed text editor fields into ScrollView

* Bump version/build number and update change log

* Fix truncated post badges on status change

When going from a shorter label (e.g., ‘LOCAL’) to a longer one (e.g., ‘PUBLISHED’), the SwiftUI render loop would not expand the size of the post badge to fit the extra characters, so on change it would be truncated (e.g., read ‘PUBL…’). This change fixes the bug.
2022-10-05 09:23:43 -04:00
Angelo Stavrow
7863c2ba08
Add error handling to post editor 2022-05-28 09:23:16 -04:00
Angelo Stavrow
01ba57ae75
Move Account-related error handling up the hierarchy 2022-05-08 09:16:46 -04:00
Angelo Stavrow
3c0bc81fec
Only ignore safe area at bottom edge (#206) 2022-04-02 08:07:03 -04:00
Angelo Stavrow
3752b85414
Add action extension 2021-11-19 15:41:54 -05:00
Angelo Stavrow
2f1b895df5
Rename 'persistentContainer' to 'container' 2021-10-08 17:15:38 -04:00
Angelo Stavrow
11ad3bc2ff
Use LocalStorageManager 'standard' singleton 2021-10-08 17:07:06 -04:00
Angelo Stavrow
55d2659448
Use collection.url rather than server + collection alias in share sheets 2021-03-18 15:43:12 -04:00
Angelo Stavrow
e6599408eb
Turn off smart dashes for easy insertion of shortcodes 2021-02-01 11:37:46 -05:00
Angelo Stavrow
ac98cd2030
Merge pull request #162 from writeas/add-review-link
Add link to write a review in the App Store
2021-01-11 09:35:02 -05:00
Angelo Stavrow
724478a80a
Add link to write a review in the App Store 2021-01-04 14:25:02 -05:00
Angelo Stavrow
e68030ec71
Improve a11y labels on post editor menu 2020-12-30 14:49:07 -05:00
Angelo Stavrow
34c2cd181e
Add a11y features to post editor context menu
Adding an .onTapGesture modifier here to dismiss the keyboard removes focus from whatever textview is active in the post editor, which prevents VoiceOver from getting confused about which accessibility frame should be read.
2020-12-30 10:39:48 -05:00
Angelo Stavrow
69cd86c1da
Prevent VO from reading the placeholder-text views 2020-12-30 10:34:54 -05:00
Angelo Stavrow
608c66e543
Add a11y labels/hints to post editor textviews
It’s impossible to differentiate these textviews because the placeholder text is not read by VoiceOver, so we need to add labels.
2020-12-30 10:19:25 -05:00
Angelo Stavrow
03a568cfdc
Add a11y labels/hints to post list and settings 2020-12-29 16:52:26 -05:00
Angelo Stavrow
088e5924a1
Only update the textView if it doesn't match text binding 2020-11-13 13:36:50 -05:00
Angelo Stavrow
3b31f36a03
Fix bug with placeholder text not disappearing 2020-11-11 10:36:32 -05:00
Angelo Stavrow
0b02903b26
Fix cursor-jump bug 2020-11-10 15:08:55 -05:00
Angelo Stavrow
e5d844757a
Fix links to credits 2020-11-10 14:52:57 -05:00
Angelo Stavrow
4d37cae4bf
Save changes to local store when post status changes 2020-11-04 14:48:59 -05:00
Angelo Stavrow
d3e89e2a45
Save or clear last draft URL from based on change in post status 2020-11-04 14:22:00 -05:00
Angelo Stavrow
c1ed348c96
Dispatch last-draft URL save to main queue to avoid iPad race condition 2020-11-04 14:22:00 -05:00
Angelo Stavrow
14aed4a14d
Clear last draft when leaving the editor 2020-11-04 14:22:00 -05:00
Angelo Stavrow
efae5202f8
Merge branch 'main' into fix-crash-on-launch 2020-11-04 14:18:44 -05:00
Angelo Stavrow
51f8495a06
Make Return key navigate from title field to last body field position 2020-11-02 15:05:39 -05:00
Angelo Stavrow
c44d48e526
Add line spacing to title text field 2020-11-02 14:15:50 -05:00
Angelo Stavrow
d129c0d0f9
Save/clear last draft based on status when loading post in editor 2020-10-30 16:28:34 -04:00
Angelo Stavrow
e7408a47e9
Fix crash-on-load bug by cleaning up/thread-sanitizing CoreData calls 2020-10-29 16:09:35 -04:00
Angelo Stavrow
bd695b23e6
Remove anything that attempts to set selected post or last draft 2020-10-29 12:03:31 -04:00
Angelo Stavrow
3134965b2c
Add (dynamic) line spacing back to post body editor 2020-10-28 13:23:41 -04:00
Angelo Stavrow
61cc9464c0
Fix insertion-point bug in body editor 2020-10-28 10:36:08 -04:00
Angelo Stavrow
3becfcbf73
Use PostBodyTitleView and PostBodyTextView for post editor 2020-10-27 16:02:28 -04:00
Angelo Stavrow
86cf0e976d
Create UIViewRepresentable / UITextView for iOS post title editor 2020-10-27 14:39:27 -04:00
Angelo Stavrow
aa51935482
Create UIViewRepresentable / UITextView for iOS post body editor 2020-10-27 14:38:46 -04:00
Angelo Stavrow
3b88d45841
Add placeholder files for UIViewRepresentable replacement of TextEditor 2020-10-27 14:30:21 -04:00
Angelo Stavrow
e7dff39905
Merge pull request #109 from writeas/ios-add-howto-link
Add link to how-to guide for iOS app
2020-10-27 13:12:05 -04:00
Angelo Stavrow
a542afa405
Refactor text-editing views out of PostEditorView [Mac] 2020-10-23 16:01:37 -04:00
Angelo Stavrow
fea9160a15
Use adaptive line spacing on iOS (fixes #111) 2020-10-23 14:06:37 -04:00
Angelo Stavrow
14b7e0f941
Refactor text-editing views out of PostEditorView [iOS] 2020-10-23 12:30:51 -04:00
Angelo Stavrow
b5687091e8
Refactor remote-change prompt out of PostEditorView [iOS] 2020-10-23 10:54:07 -04:00
Angelo Stavrow
d6a073ccd8
Merge pull request #107 from writeas/editor-design-improvements
Minor editor design improvements
2020-10-23 09:40:28 -04:00
Angelo Stavrow
94c6280ed3
Add guide link and improve description of section and links 2020-10-21 16:57:14 -04:00
60ebdd2e3e Add some spacing between lines in the editor 2020-10-21 15:55:05 -04:00
d780be07c2 Make editor title field padding consistent with body 2020-10-21 12:44:22 -04:00