类似新闻头条轮播滚动
效果图:
类似新闻头条轮播效果.gif
相关源码:
ContentView.swift
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
HStack(spacing: 0) {
HomeSearchHotKeyWordView()
.background(Color.brown)
.onTapGesture {
withAnimation {
}
}
}
.padding(.horizontal, 16)
.background(Color.brown)
.frame(height: 40)
}
}
}
HomeSearchHotKeyWordView.swift
网友评论