Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

タブアイテムの最小幅を設定できるようにした #15

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

YugoMatsuda
Copy link

対応内容

タブアイテムの最小幅をデフォルトで64ptに設定

スクショ

Before After
スクリーンショット 2024-03-12 16 45 51

Copy link

@misakiagata misakiagata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙆‍♀️

@@ -91,6 +91,9 @@ public struct SwipeMenuViewOptions {
/// TabView adjust width or not. Defaults to `true`.
public var needsAdjustItemViewWidth: Bool = true

/// TabView item minimum width.
public var minimumItemWidth: CGFloat = 64.0
Copy link

@kangnux kangnux Mar 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

長さのデフォルト値は今と同じように0で設定した方が良いかもです?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デザイン上、ミニマム64ptで固定なのでこのままでも良い気がしたんですがどうでしょうか?
それかOptionalにするかとかですかね?

Copy link

@kangnux kangnux Mar 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

あと、Item向けのサイズ制限ので、定義自体はItemView配下に入れた方が良いですね?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

デザイン上、ミニマム64ptで固定なのでこのままでも良い気がしたんですがどうでしょうか?
それかOptionalにするかとかですかね?

あっ、そもそもミニマム64ptで固定するのはジャンル選択タブのみの認識です、
今後他のUseCasもあるかもので、デフォルト値を0にして利用側に64を固定して良いかと思います。

Copy link
Author

@YugoMatsuda YugoMatsuda Mar 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こちらで🙏
ac2c3e0

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kangnux
修正しました!

@@ -21,6 +21,10 @@ public struct SwipeMenuViewOptions {
/// ItemView width. Defaults to `100.0`.
public var width: CGFloat = 100.0
Copy link

@kangnux kangnux Mar 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

widthも同じようにコメントを追記していただきたいです。🙏🏻

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

追記してます!
085b8dd

@YugoMatsuda YugoMatsuda merged commit 25c7994 into master Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants