Post

Replies

Boosts

Views

Activity

Comment on Precompute the height of a UITableView with dynamically sized cells
"Constrain to what? Are you saying that you want to set the height of the inner table view so that it doesn't need to scroll its contents, so that scrolling gestures always scroll the outer scroll view? Is the number of rows in the inner table view fixed, or does it change over time?" This is exactly what I mean. The contents of the inner table view do change, but at discrete moments of time (e.g. at the press of a button), so I'm not sure if this is much of a concern?
Jan ’23
Comment on Dynamically Reconfigure Visible Title of an IB-based UIViewController before it is Visible
Scratch that. The issue is that my procedure to retrieve the dynamic title is a bit more complex than I let on and relies on an combine publisher that is recieved on DispatchQueue.main. I made an incorrect assumption that an event would fire off immediately once a subscription was made, which is where I got the idea that I had tried viewDidLoad(:). Thankfully this is an easy fix :)
Oct ’22
Comment on Any way to horizontally inset the cells of a UITableView?
I have just noticed that the directional layout margins are being reset from my custom specified to (top: 0.0, leading: 20.0, bottom: 0.0, trailing: 20.0) sometime after my view controller is loaded. Do you happen to know what could be causing this behavior? This seems to occur sometime inbetween calls to viewWillAppear(:animated) and viewDidAppear(:aniamted)
Aug ’22
Comment on How to prevent UITextField from intepreting its characters (e.g. converting "..." to elipsis)
Pardon me, but I think you might be misunderstanding my problem @Peter_Schorn. The issue is not about what happens when the text escapes the visible bounds, but how UITextField interprets its "text" property. For example, if a user types in three consecutive periods "...", the value that is read from UITextField::text is a Unicode elipsis rather than three period characters. I would prefer instead that the periods remain.
Feb ’22