라이브 메인 - 이벤트 클릭 이벤트 추가
This commit is contained in:
parent
38df12872a
commit
d93c3e8836
|
@ -28,6 +28,7 @@ struct SectionEventBannerView: View {
|
||||||
.tag(index)
|
.tag(index)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
if let _ = item.detailImageUrl {
|
if let _ = item.detailImageUrl {
|
||||||
|
AppState.shared.setAppStep(step: .eventDetail(event: item))
|
||||||
} else if let link = item.link, link.trimmingCharacters(in: .whitespaces).count > 0, let url = URL(string: link), UIApplication.shared.canOpenURL(url) {
|
} else if let link = item.link, link.trimmingCharacters(in: .whitespaces).count > 0, let url = URL(string: link), UIApplication.shared.canOpenURL(url) {
|
||||||
UIApplication.shared.open(url)
|
UIApplication.shared.open(url)
|
||||||
}
|
}
|
||||||
|
@ -39,6 +40,7 @@ struct SectionEventBannerView: View {
|
||||||
.tag(index)
|
.tag(index)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
if let _ = item.detailImageUrl {
|
if let _ = item.detailImageUrl {
|
||||||
|
AppState.shared.setAppStep(step: .eventDetail(event: item))
|
||||||
} else if let link = item.link, link.trimmingCharacters(in: .whitespaces).count > 0, let url = URL(string: link), UIApplication.shared.canOpenURL(url) {
|
} else if let link = item.link, link.trimmingCharacters(in: .whitespaces).count > 0, let url = URL(string: link), UIApplication.shared.canOpenURL(url) {
|
||||||
UIApplication.shared.open(url)
|
UIApplication.shared.open(url)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue