fatbobxu's recent timeline updates
fatbobxu's repos on GitHub
Swift · 403 watchers
ObservableDefaults
A comprehensive solution integrating SwiftUI + Observation + UserDefaults + iCloud Key-Value Store
Swift · 398 watchers
SwiftUIOverlayContainer
SwiftUI Overlay Container is a view container component for SwiftUI. It is a customizable, efficient and convenient view manager.
Swift · 325 watchers
SwipeCell
SwipeCell is a SwiftUI library, used to achieve the left and right sliding menu effect similar to the iOS mail app.
Swift · 138 watchers
Infinite4Pager
Infinite4Pager is a flexible and powerful SwiftUI component that provides infinite scrolling capabilities in four directions: up, down, left, and right. It's perfect for creating image galleries, card decks, or any other content that requires seamless navigation in multiple directions.
Swift · 131 watchers
CoreDataEvolution
SwiftData-style actor isolation, Swift-first NSManagedObject macros, and typed mapping for modern Core Data projects.
Swift · 129 watchers
PersistentHistoryTrackingKit
A Swift package that processes Core Data persistent history so apps and extensions can observe, merge, and clean transactions consistently.
Swift · 125 watchers
SheetKit
an extension library for SwiftUI sheets.
Swift · 120 watchers
BlogCodes
【肘子的Swift笔记】博文中的代码汇总
Swift · 115 watchers
NavigationViewKit
NavigationViewKit is a NavigationView extension library for SwiftUI.
Swift · 111 watchers
iCloudSyncStatusKit
A Swift library that monitors the iCloud account status and responds to synchronization events when using Core Data with CloudKit.
Swift · 102 watchers
SwiftDataKit
SwiftDataKit allows SwiftData developers to access Core Data objects corresponding to SwiftData elements.
Swift · 94 watchers
IsScrolling
As the name suggests, IsScrolling provides a ViewModifier to get the current scrolling state of a ScrollView or List in SwiftUI. IsScrolling has good backward and forward compatibility since it is fully implemented natively in SwiftUI. 正如名称所示,IsScrolling 提供了一个 ViewModifier ,用来获取 SwiftUI 中 ScrollView 或 List 当前的滚动状态。由于完全采用了 SwiftUI 原生的方式实现此功能,因此 IsScrolling 具备了很好的前后兼容性。
Swift · 51 watchers
Objects2XLSX
A powerful, type-safe Swift library for converting Swift objects to Excel (.xlsx) files. Objects2XLSX provides a modern, declarative API for creating professional Excel spreadsheets with full styling support, multiple worksheets, and real-time progress tracking.
Swift · 50 watchers
MovieHunter
Swift · 47 watchers
TabularBuilder
Declarative TabularData creation for Swift - Convert objects to DataFrames with type-safe, SwiftUI-like syntax
Swift · 45 watchers
SimpleLogger
A simple logging library for Swift 6, providing easy-to-use logging functionalities with support for different log levels and backends.
Swift · 33 watchers
ShareData_Demo_For_CoreDataWithCloudKit
Demo for wwdc21-10015,how to share data by Core Data with CloudKit
Swift · 25 watchers
SwiftDataConcurrencyDemo
Swift · 22 watchers
PublishThemeForFatbobmanBlog
A publish theme and plugin for fatbobman.com.Plugins:TruncateHtmlDescription.TagCount,,Bilibili Video,RssPropertiesSetting and more...
Swift · 22 watchers
Todo
Python · 18 watchers
mail-mcp-bridge
Connect macOS Mail to AI through Model Context Protocol
Swift · 14 watchers
DismissConfirmSheet
iOS14 multiSheet solution. Includes dismiss gesture control
Swift · 14 watchers
ModelActorX
ModelActorX is a Swift library that provides custom macros ModelActorX and MainModelActorX to enhance and extend the functionality of SwiftData's ModelActor.
Swift · 11 watchers
MOCloner
A tiny library that implements deep copy of NSManagedObject
Swift · 11 watchers
PersistentHistoryTrackingDemo
Persistent History Tracking Demo
Swift · 11 watchers
TinyDependency
A lightweight dependency injection library for Swift with Task-local scoping and test/ preview-aware defaults.
Swift · 9 watchers
CloudStorage
Swift · 9 watchers
TextFieldFomatAndValidateDemo
Swift · 7 watchers
ListExample
SwiftUI List example
JavaScript · 4 watchers
fatbobman.github.io
JavaScript · 3 watchers
chinese-independent-blogs
中文独立博客列表
Swift · 3 watchers
CommandExample
SwiftUI 2.0 Commands example
Swift · 3 watchers
UserDefaultsObservation
Astro · 2 watchers
AstroRSSIssue
2 watchers
blogComments
Swift · 2 watchers
Charts
Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
2 watchers
CloudSyncSession
Swift package that makes it easier to write CloudKit sync-enabled, offline-capable apps
2 watchers
CoreDataCloudKitShare
Learn how to use Core Data CloudKit.
Swift · 2 watchers
CustomParseableFormatStyleDemo
Swift · 2 watchers
local-search-engine-for-Publish
local-search-engine-for-publish
Swift · 2 watchers
LocalizationDemoForBlogPost
Swift · 2 watchers
MySingleSoureOfTruthDemo
Swift · 2 watchers
SingleStoreDemo
Swift · 2 watchers
SwiftIODemo
2 watchers
SwiftXLSX
SwiftXLSX is a library focused creating Excel spreadsheet (XLSX) files directly on mobile devices.
Swift · 1 watchers
Archive_Article_By_Month_Publish_Plugin
A Plugin for Publish to generate a article archive page by month
Swift · 1 watchers
ARDemo_GoldenEyes
Swift · 1 watchers
BIAN-Killer
Swift · 1 watchers
CoreDataInPreview
演示如何为SwiftUI的Preview提供Core Data数据
CSS · 1 watchers
FatBlog
1 watchers
fatbobman
1 watchers
fullmoon-ios
chat with private and local large language models
Swift · 1 watchers
MarkdownView
Markdown View for iOS.
Python · 1 watchers
MCP-Markdown-RAG
A semantic search engine for markdown files based on MCP architecture.
Swift · 1 watchers
ShareCode
Some code snippets for sharing 一些用于分享的代码片段
1 watchers
swift-configuration
API package for reading configuration.
Swift · 1 watchers
SwiftUIX
An extension to the standard SwiftUI library.
1 watchers
Sync
JSON to Core Data and back. Swift Core Data Sync.
Swift · 1 watchers
TMDb
The Movie Database Swift Package
0 watchers
CodeEdit
CodeEdit App for macOS – Elevate your code editing experience. Open source, free forever.
0 watchers
ExcelExportTool
Excel转换器,能轻松将Excel文件转换成任意你想要的Json格式
0 watchers
FatBlogTheme
0 watchers
FetchedResultsControllerNeverCrash
A way to manager a fetchedResultsController in a way that it will never crash
0 watchers
gitalk
Gitalk is a modern comment component based on Github Issue and Preact.
0 watchers
HighlightedTextEditor
A SwiftUI view for dynamically highlighting user input
Swift · 0 watchers
HighlightJSPublishPlugin
Highlight JS Publish Plugin
0 watchers
Ink
A fast and flexible Markdown parser written in Swift.
Ruby · 0 watchers
iOSDevDirectory
The iOS Dev Directory
Python · 0 watchers
iOSWeeklyLearning
iOS周报仓库,欢迎大家共享内容
0 watchers
mcp-swift-sdk
Swift SDK for Model Context Protocol servers and clients
Swift · 0 watchers
my-swift-aoc-2024
CSS · 0 watchers
MyPublishBlog
0 watchers
ObservableUserDefault
A Swift macro that adds accessor blocks to properties in `Observable` classes that read and write values in `UserDefaults`.
Swift · 0 watchers
OpenSwiftUI
[WIP] Open source implementation of Apple's SwiftUI.
0 watchers
PackageList
The master list of repositories for the Swift Package Index.
Swift · 0 watchers
PhotosGridTCA
0 watchers
Playground
Instantly create Swift playgrounds from the command line
Swift · 0 watchers
Publish
A static site generator for Swift developers
0 watchers
RecallKit
iOS-first sparse indexing library for local app memory and on-device context search in Swift
Swift · 0 watchers
ReduxTest
0 watchers
ScrollViewProxy
ScrollViewProxy for SwiftUI on iOS 13 and up
Swift · 0 watchers
StudentMangement
Swift · 0 watchers
Swallow
A complement to the Swift standard library.
0 watchers
swift-composable-architecture
A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
0 watchers
SwiftData-Demo
A demo app showcasing several issues with SwiftData & SwiftUI
Swift · 0 watchers
SwiftDB
A modern database abstraction layer + runtime, batteries included [WIP].
Swift · 0 watchers
SwiftUITapsPackage
0 watchers
TipComments
0 watchers
weeklyComments
fatbobxu

fatbobxu

V2EX member #449380, joined on 2019-10-27 08:57:03 +08:00
fatbobxu's recent replies
May 8, 2023
Replied to a topic by blacko Swift 一个 SwiftUI 的超级新手小白问题
因为你碰到了一个 SwiftUI 4 的 Bug 。
这个代码在 iOS 15 ( SwiftUI 3 )中运行时,下方面的 Text 是不会反复变化的。因为 Text 并不符合 Animatable 协议,无法创建差值。
在 SwiftUI 4 中,Text 在内部实现了对文字变化的动态处理,通过 contentTransition 可以设置差值的处理方式,目前看来,在 opactity 和 interpolate 这两种状态下,对 animation 为 repeatForever 或 repeatCount 的处理有问题,没有及时响应 animation 的停止。
仅此而已。建议你给苹果提交 FB,让他们在下个版本中改善该问题。

如果,你确实要实现这个效果,可以采用 @jwautumn 回答中提到的方式,使用 if else 来创建两个不同的 Text 分支。
之所以在这种情况下,可以响应 animation ,是因为 transition 的原因。默认情况下,transition 为 opactity ,因此 SwiftUI 会为转场的透明度创建差值,反复在两个视图中交替。

需要注意的是,当 animation 为 repeat 时,状态( xv )并不会发生变化(只会在 toggle 执行时改变一次),所有的动画效果,都是在反应差值的状态,并非当前 xv 的状态。
May 13, 2022
Replied to a topic by alexcding iDev NSPersistentCloudKitContainer iOS 和 Mac 不同步问题
是否已在 CloudKit console 上将数据结构部署到发行环境?
Jul 29, 2021
Replied to a topic by 1daydayde iOS 没人讨论 iOS 15 Developer Beta 4?
@hstdt 我也碰到了这个问题。CoreData 无法和 Cloudkit 同步
Jul 29, 2021
Replied to a topic by 1daydayde iOS 没人讨论 iOS 15 Developer Beta 4?
我也碰到了 CoreData 无法和 Cloudkit 同步
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3075 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 02:31 · PVG 10:31 · LAX 19:31 · JFK 22:31
♥ Do have faith in what you're doing.