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

【FEAT】 support iOS16 #105

Merged
merged 3 commits into from
May 5, 2024
Merged

【FEAT】 support iOS16 #105

merged 3 commits into from
May 5, 2024

Conversation

mrs1669
Copy link
Member

@mrs1669 mrs1669 commented May 5, 2024

概要 (Abstract)

  • iOS16.0をサポート
  • バナーでタップ領域がバグっていた問題の解消

関連するISSUE

詳細 (Detail)

@mrs1669 mrs1669 self-assigned this May 5, 2024
Comment on lines +10 to +23
extension View {
@ViewBuilder func onChange<V: Equatable>(of value: V, initial: Bool, perform action: @escaping (_ newValue: V) -> Void) -> some View {
if #available(iOS 17.0, *) {
onChange(of: value, initial: initial) {
action($1)
}
} else if initial {
onAppear { action(value) }
.onChange(of: value, perform: action)
} else {
onChange(of: value, perform: action)
}
}
}
Copy link
Member Author

Choose a reason for hiding this comment

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

ViewのExtension
もしかしたらいらないかもしれない

以下で良さそう

.onChange(of: ) { _ in
   // hoge
}

@mrs1669 mrs1669 merged commit 3b579b5 into develop May 5, 2024
2 checks passed
@mrs1669 mrs1669 deleted the feat/support_ios16 branch May 5, 2024 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant