fatbobxu 最近的时间轴更新
fatbobxu's repos on GitHub
Swift · 389 人关注
SwiftUIOverlayContainer
SwiftUI Overlay Container is a view container component for SwiftUI. It is a customizable, efficient and convenient view manager.
Swift · 372 人关注
ObservableDefaults
A comprehensive solution integrating SwiftUI + Observation + UserDefaults + iCloud Key-Value Store
Swift · 311 人关注
SwipeCell
SwipeCell is a SwiftUI library, used to achieve the left and right sliding menu effect similar to the iOS mail app.
Swift · 137 人关注
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 · 124 人关注
SheetKit
an extension library for SwiftUI sheets.
Swift · 119 人关注
BlogCodes
【肘子的Swift笔记】博文中的代码汇总
Swift · 119 人关注
PersistentHistoryTrackingKit
A library for managing Core Data's Persistent History Tracking
Swift · 115 人关注
NavigationViewKit
NavigationViewKit is a NavigationView extension library for SwiftUI.
Swift · 101 人关注
SwiftDataKit
SwiftDataKit allows SwiftData developers to access Core Data objects corresponding to SwiftData elements.
Swift · 96 人关注
iCloudSyncStatusKit
A Swift library that monitors the iCloud account status and responds to synchronization events when using Core Data with CloudKit.
Swift · 91 人关注
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 · 72 人关注
CoreDataEvolution
A library aimed at modernizing Core Data by incorporating the elegance and safety of SwiftData-style concurrency.
Swift · 50 人关注
MovieHunter
Swift · 48 人关注
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 · 45 人关注
TabularBuilder
Declarative TabularData creation for Swift - Convert objects to DataFrames with type-safe, SwiftUI-like syntax
Swift · 43 人关注
SimpleLogger
A simple logging library for Swift 6, providing easy-to-use logging functionalities with support for different log levels and backends.
Swift · 33 人关注
ShareData_Demo_For_CoreDataWithCloudKit
Demo for wwdc21-10015,how to share data by Core Data with CloudKit
Swift · 26 人关注
SwiftDataConcurrencyDemo
Swift · 22 人关注
PublishThemeForFatbobmanBlog
A publish theme and plugin for fatbobman.com.Plugins:TruncateHtmlDescription.TagCount,,Bilibili Video,RssPropertiesSetting and more...
Swift · 22 人关注
Todo
Swift · 14 人关注
DismissConfirmSheet
iOS14 multiSheet solution. Includes dismiss gesture control
Swift · 13 人关注
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 人关注
MOCloner
A tiny library that implements deep copy of NSManagedObject
Swift · 11 人关注
PersistentHistoryTrackingDemo
Persistent History Tracking Demo
Swift · 9 人关注
CloudStorage
Swift · 9 人关注
TextFieldFomatAndValidateDemo
Swift · 7 人关注
ListExample
SwiftUI List example
Python · 5 人关注
mail-mcp-bridge
Connect macOS Mail to AI through Model Context Protocol
JavaScript · 4 人关注
fatbobman.github.io
JavaScript · 3 人关注
chinese-independent-blogs
中文独立博客列表
Swift · 3 人关注
CommandExample
SwiftUI 2.0 Commands example
Swift · 3 人关注
TinyDependency
轻量级 Swift 依赖注入库,支持 Swift 6 严格并发
Swift · 3 人关注
UserDefaultsObservation
Astro · 2 人关注
AstroRSSIssue
2 人关注
blogComments
Swift · 2 人关注
Charts
Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
2 人关注
CloudSyncSession
Swift package that makes it easier to write CloudKit sync-enabled, offline-capable apps
2 人关注
CoreDataCloudKitShare
Learn how to use Core Data CloudKit.
Swift · 2 人关注
CustomParseableFormatStyleDemo
Swift · 2 人关注
local-search-engine-for-Publish
local-search-engine-for-publish
Swift · 2 人关注
LocalizationDemoForBlogPost
Swift · 2 人关注
MySingleSoureOfTruthDemo
Swift · 2 人关注
SingleStoreDemo
Swift · 2 人关注
SwiftIODemo
Swift · 1 人关注
Archive_Article_By_Month_Publish_Plugin
A Plugin for Publish to generate a article archive page by month
Swift · 1 人关注
ARDemo_GoldenEyes
Swift · 1 人关注
BIAN-Killer
Swift · 1 人关注
CoreDataInPreview
演示如何为SwiftUI的Preview提供Core Data数据
CSS · 1 人关注
FatBlog
1 人关注
fatbobman
1 人关注
fullmoon-ios
chat with private and local large language models
Swift · 1 人关注
MarkdownView
Markdown View for iOS.
Python · 1 人关注
MCP-Markdown-RAG
A semantic search engine for markdown files based on MCP architecture.
Swift · 1 人关注
ShareCode
Some code snippets for sharing 一些用于分享的代码片段
1 人关注
swift-configuration
API package for reading configuration.
Swift · 1 人关注
SwiftUIX
An extension to the standard SwiftUI library.
1 人关注
SwiftXLSX
SwiftXLSX is a library focused creating Excel spreadsheet (XLSX) files directly on mobile devices.
1 人关注
Sync
JSON to Core Data and back. Swift Core Data Sync.
Swift · 1 人关注
TMDb
The Movie Database Swift Package
0 人关注
CodeEdit
CodeEdit App for macOS – Elevate your code editing experience. Open source, free forever.
0 人关注
ExcelExportTool
Excel转换器,能轻松将Excel文件转换成任意你想要的Json格式
0 人关注
FatBlogTheme
0 人关注
FetchedResultsControllerNeverCrash
A way to manager a fetchedResultsController in a way that it will never crash
0 人关注
gitalk
Gitalk is a modern comment component based on Github Issue and Preact.
0 人关注
HighlightedTextEditor
A SwiftUI view for dynamically highlighting user input
Swift · 0 人关注
HighlightJSPublishPlugin
Highlight JS Publish Plugin
0 人关注
Ink
A fast and flexible Markdown parser written in Swift.
Ruby · 0 人关注
iOSDevDirectory
The iOS Dev Directory
Python · 0 人关注
iOSWeeklyLearning
iOS周报仓库,欢迎大家共享内容
0 人关注
mcp-swift-sdk
Swift SDK for Model Context Protocol servers and clients
Swift · 0 人关注
my-swift-aoc-2024
CSS · 0 人关注
MyPublishBlog
0 人关注
ObservableUserDefault
A Swift macro that adds accessor blocks to properties in `Observable` classes that read and write values in `UserDefaults`.
Swift · 0 人关注
OpenSwiftUI
[WIP] Open source implementation of Apple's SwiftUI.
0 人关注
PackageList
The master list of repositories for the Swift Package Index.
Swift · 0 人关注
PhotosGridTCA
0 人关注
Playground
Instantly create Swift playgrounds from the command line
Swift · 0 人关注
Publish
A static site generator for Swift developers
Swift · 0 人关注
ReduxTest
0 人关注
ScrollViewProxy
ScrollViewProxy for SwiftUI on iOS 13 and up
Swift · 0 人关注
StudentMangement
Swift · 0 人关注
Swallow
A complement to the Swift standard library.
0 人关注
swift-composable-architecture
A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
0 人关注
SwiftData-Demo
A demo app showcasing several issues with SwiftData & SwiftUI
Swift · 0 人关注
SwiftDB
A modern database abstraction layer + runtime, batteries included [WIP].
Swift · 0 人关注
SwiftUITapsPackage
0 人关注
TipComments
0 人关注
weeklyComments
fatbobxu

fatbobxu

V2EX 第 449380 号会员,加入于 2019-10-27 08:57:03 +08:00
fatbobxu 最近回复了
2023 年 5 月 8 日
回复了 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 的状态。
2022 年 5 月 13 日
回复了 alexcding 创建的主题 iDev NSPersistentCloudKitContainer iOS 和 Mac 不同步问题
是否已在 CloudKit console 上将数据结构部署到发行环境?
2021 年 7 月 29 日
回复了 1daydayde 创建的主题 iOS 没人讨论 iOS 15 Developer Beta 4?
@hstdt 我也碰到了这个问题。CoreData 无法和 Cloudkit 同步
2021 年 7 月 29 日
回复了 1daydayde 创建的主题 iOS 没人讨论 iOS 15 Developer Beta 4?
我也碰到了 CoreData 无法和 Cloudkit 同步
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2670 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 11:59 · PVG 19:59 · LAX 03:59 · JFK 06:59
♥ Do have faith in what you're doing.