Post

Replies

Boosts

Views

Activity

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.
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’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)
Topic: UI Frameworks SubTopic: UIKit Tags:
Aug ’22
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 :)
Topic: UI Frameworks SubTopic: UIKit Tags:
Oct ’22
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?
Topic: UI Frameworks SubTopic: UIKit Tags:
Jan ’23
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.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on How to prevent UITextField from intepreting its characters (e.g. converting "..." to elipsis)
Seems to have done the trick (with the elipsis at least) :). Thanks!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on How to prevent UITextField from intepreting its characters (e.g. converting "..." to elipsis)
I will note that it does not seem like the documentation for smartDashesType is complete. It does not reference conversion between periods and elipsis, and makes me wonder if there is other hidden behavior.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on How to prevent UITextField from intepreting its characters (e.g. converting "..." to elipsis)
Understood. Filed with Feedback Assistant :)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’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)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on Are IBOutlets set asynchronously to instantiate(withOwner:options:)?
The "Internal" views (Internal1 and Internal2) are IB-based (not created in code) and owned by the External view.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Aug ’22
Comment on Dynamically Reconfigure Visible Title of an IB-based UIViewController before it is Visible
Yes. I observed the same behavior.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’22
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 :)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’22
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?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’23
Comment on Precompute the height of a UITableView with dynamically sized cells
"No, it doesn't get an accurate height in advance" Thanks for clearing up this misunderstanding and explaining the implementation a bit more in depth. I will go ahead and mark this as a solution and look at other potential implementations :)
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’23