Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Spacing of items in toolbar #14

Closed
xiaosongshu opened this issue Oct 22, 2017 · 2 comments
Closed

Spacing of items in toolbar #14

xiaosongshu opened this issue Oct 22, 2017 · 2 comments

Comments

@xiaosongshu
Copy link

xiaosongshu commented Oct 22, 2017

Is it possible to hardcode the position of the items in the toolbar?

I'm thinking of something like this:

Dynamic_string_button............................................Bold...Italic...
The Dynamic_string_button is used as a sort of pseudo autocorrect based on a prepopulated list of words (appears based on what the user types). Bold and Italic button are used to modify the textView.

If the Dynamic_string_button doesn't match any keywords, then only Bold/Italic is shown, but they are still aligned to the right, so something like:

.....................................................Bold....Italic

@Hackmodford
Copy link
Contributor

I believe this and #11 could be solved by using something like a flexible width space object. How to implement that is another story...

@ruddfawcett
Copy link
Owner

I agree with @Hackmodford — sounds like a flexible width space object, but because the toolbar isn't actually a UIToolbar (but rather a UIView with UIScrollView) you'd have to calculate the width of the buttons and then change the x-position of each, which is not scalable and rather tedious.

I'll think a bit more on this...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants