feat: новые функции, исправлены критические ошибки сборки и баги интерфейса, больше подписей в файлах

This commit is contained in:
ichmagmaus 812
2026-03-04 22:06:16 +01:00
parent a614259289
commit f033954db2
81 changed files with 1256 additions and 298 deletions
@@ -5,6 +5,8 @@ swift_library(
module_name = "GiftViewScreen",
srcs = glob([
"Sources/**/*.swift",
], exclude = [
"Sources/TableComponent.swift",
]),
copts = [
"-warnings-as-errors",
@@ -133,7 +133,7 @@ public func giftOfferAlertController(
HStack(items, spacing: 4.0)
)
tableItems.append(.init(
tableItems.append(TableComponent.Item(
id: id,
title: title,
hasBackground: false,
@@ -180,12 +180,12 @@ public func giftOfferAlertController(
AlertTextComponent(content: .plain(text))
)
))
content.append(AnyComponentWithIdentity(
let tableComponent = AnyComponent(AlertTableComponent(items: tableItems))
let tableEntry = AnyComponentWithIdentity<AlertComponentEnvironment>(
id: "table",
component: AnyComponent(
AlertTableComponent(items: tableItems)
)
))
component: tableComponent
)
content.append(tableEntry)
if let valueAmount = gift.valueUsdAmount {
let resaleConfiguration = StarsSubscriptionConfiguration.with(appConfiguration: context.currentAppConfiguration.with { $0 })
@@ -118,7 +118,7 @@ public func giftTransferAlertController(
HStack(items, spacing: 4.0)
)
tableItems.append(.init(
tableItems.append(TableComponent.Item(
id: id,
title: title,
hasBackground: false,
@@ -165,12 +165,12 @@ public func giftTransferAlertController(
AlertTextComponent(content: .plain(text))
)
))
content.append(AnyComponentWithIdentity(
let tableComponent = AnyComponent(AlertTableComponent(items: tableItems))
let tableEntry = AnyComponentWithIdentity<AlertComponentEnvironment>(
id: "table",
component: AnyComponent(
AlertTableComponent(items: tableItems)
)
))
component: tableComponent
)
content.append(tableEntry)
let alertController = ChatMessagePaymentAlertController(
context: context,