25 lines
773 B
Swift
25 lines
773 B
Swift
//
|
||
// ScenicPromotionLayout.swift
|
||
// suixinkan
|
||
//
|
||
// Created by Codex on 2026/7/2.
|
||
//
|
||
|
||
import CoreGraphics
|
||
import Foundation
|
||
|
||
/// 宣传页布局常量,统一管理边距与模块尺寸。
|
||
enum ScenicPromotionLayout {
|
||
/// 主页面内容距离屏幕左右边缘各 20px,不代表模块之间的间距。
|
||
static let screenEdgePadding: CGFloat = 20
|
||
/// 模块之间保持轻量垂直间距,避免误用 20px 做模块间隔。
|
||
static let moduleVerticalSpacing: CGFloat = 12
|
||
/// 打卡点标签区最多一屏露出 5 个,更多时横向滚动。
|
||
static let visibleSpotTabCount: CGFloat = 5
|
||
}
|
||
|
||
/// 宣传页隐藏设置页路由实体。
|
||
struct ScenicPromotionSettingsRoute: Identifiable, Hashable {
|
||
let id = "promotion_page_settings"
|
||
}
|