Depending on the amount of text in the textView, the following can cause the textView to go completely blank or scroll to a location in the middle of the text and prevent the user from scrolling to the end of the text.
let nsRange = NSMakeRange(textView.text!.count - 1, 1)
textView.scrollRangeToVisible(nsRange)
I'm looking for a workaround to do the simplest thing in the world: scroll the damn textView to the bottom.
Post
Replies
Boosts
Views
Activity
If I add an UIImage of a SFSymbol icon to an UIButton, an UICollectionView in a sibling view does not allow drag and drop reordering. If I use text to label the button, drag and drop works.
What am I missing here?
This is not a question but an answer that may help those who want to use two different Settings.bundles in a Catalyst app.
Create two folders, one named iOS, one named MacOS. Drag your existing Settings.bundle into the iOS folder. The bundle is in the folder when the blue underline appears under the folder. My XCode is broken. To get the "new folder" item to show up on the context menu, I had to select the existing Settings.bundle. This put both new folders in the bundle. I dragged them out.
Select your MacOS folder. Use the context menu to add a "new file". Select Settings.bundle. You need to scroll down to find it.
Delete the example entries in the plist. Customize. You can copy and paste entries from the iOS plist.
Select your project page. Select your target. Select "Build Phases". Expand "Copy Bundle Resources". Find your original Settings.bundle in the list and delete it with the minus button. Use the plus button to add your two bundles. For each, select the appropriate target (MacOS/iOS) in the target column. The second time you select the plus button, it will not show you the other bundle. I assume XCode doesn't think you need a second one. Select "Add other" to navigate the filesystem and find your second bundle.
That's all. Run and test.
I have uploaded Catalyst builds of my iPad apps, and ASC finds the app icons in the bundles, but the little icons that appear beside builds in the build listing do not display.
I have turned on mac icons in the attributes pane of Assets.xassets and filled all the Mac wells correctly.
ASC let me submit the apps for review, so is there a problem, or is this an ASC issue?