scribe-org/Scribe-iOS

Rework buttons to use new configuration option

Open

#451 opened on 2024年6月1日

GitHub で見る
 (0 comments) (1 reaction) (0 assignees)Swift (106 forks)auto 404
designhelp wanted

Repository metrics

Stars
 (167 stars)
PR merge metrics
 (PR metrics pending)

説明

Terms

Description

In #448 we discussed converting the buttons to use iOS 15's UIButton.Configuration feature. It automatically resizes text and images and has more settings for styling buttons. This would mean that for example, instead of button.setTitle("title"), we would have a configuration for said button and use button.configuration.title = "title". This configuration can be re-used and doesn't have to be reset for every newly created button, so it would make sense to only create as many base configurations as needed and then add things like a title as needed. So far, this is only used for missing conjugations, which you can find at the top of KeyboardStyling.swift, but it should ideally be used for as many custom buttons on the keyboard as is practical.

Contribution

I can assist with this if any help is needed, there is also this explanation on configurations to get started.

コントリビューターガイド