-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙆♀️
Sources/SwipeMenuView.swift
Outdated
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
長さのデフォルト値は今と同じように0で設定した方が良いかもです?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
デザイン上、ミニマム64ptで固定なのでこのままでも良い気がしたんですがどうでしょうか?
それかOptionalにするかとかですかね?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あと、Item向けのサイズ制限ので、定義自体はItemView配下に入れた方が良いですね?
There was a problem hiding this comment.
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を固定して良いかと思います。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちらで🙏
ac2c3e0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
width
も同じようにコメントを追記していただきたいです。🙏🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
追記してます!
085b8dd
対応内容
タブアイテムの最小幅をデフォルトで64ptに設定
スクショ