phranck
|
db8ea40c0a
|
Refactor: Fix SwiftLint warnings and refactor StatusBar to _StatusBarCore pattern
- Fix 80 SwiftLint warnings (159 -> 79): vertical_whitespace, prefer_self_in_static_references, modifier_order, trailing_newline, trailing_whitespace, prefer_for_where, unneeded_synthesized_initializer, redundant_type_annotation, implicit_optional_initialization, superfluous_disable_command, shorthand_optional_binding, syntactic_sugar, empty_string, vertical_whitespace_closing_braces, identifier_name in BadgeModifier
- Refactor StatusBar from direct Renderable to _StatusBarCore pattern (public View with real body wrapping private Renderable core)
|
2026-02-15 02:35:18 +01:00 |
|
phranck
|
04d71f42c2
|
Refactor: Selective RenderCache invalidation for performance
- Remove pulse-triggered cache clearing (was destroying entire cache
~7x/sec during focus animation, yielding 0% hit rate)
- Add RenderCache.clearAffected(by:) for identity-aware invalidation
- Wire StateBox to its ViewIdentity for targeted cache clearing on
@State changes (sibling subtrees retain their cached buffers)
- Add 5 new tests for clearAffected covering ancestor, descendant,
sibling preservation, exact match, and empty cache scenarios
- Update EquatableView documentation with pulse/focus guidance
|
2026-02-14 15:03:51 +01:00 |
|
phranck
|
d0627bafdc
|
Refactor: Extract TUIkitView module and organize sub-module directories
- Extract View system foundation into new TUIkitView module (Layer 1)
- View, ViewBuilder, TupleViews, ViewModifier, PrimitiveViews, EquatableView
- Renderable, RenderContext, RenderCache, ChildInfo, SpacerProtocol
- State, StateStorage, StateRegistration, HydrationContext
- EnvironmentValues, EnvironmentModifier, ViewServiceEnvironment
- Introduce SpacerProtocol to decouple ChildInfo from concrete Spacer type
- Split ServiceEnvironment.swift (StateStorageKey/RenderCacheKey to TUIkitView)
- Add @_exported import TUIkitView in Exports.swift for backward compatibility
- Make internal types public for cross-module visibility (Renderable, Layoutable,
renderToBuffer, ChildView, ChildInfo, ModifiedView, StateStorage, RenderCache)
- Organize TUIkitCore into Rendering/, Environment/, Input/, Extensions/, Concurrency/
- Organize TUIkitStyling into Color/, Theme/, Styles/
|
2026-02-14 14:11:09 +01:00 |
|