Sylvain G. · @sgamel
66 followers · 934 posts · Server mastodon.top

Currently refactoring my entire app from to Combine is far more easy than expected. Most painful parts are type safety weirdness (hello CombineLatest!) and tests relying on test scheduler that need some revamp. Oh. By the way, that’s also a nice opportunity to properly split in for modularity. Still far from complete but in pretty good shape for now.

#swift #rxswift #swiftpackage #iosdev #refactoring

Last updated 2 years ago

Sylvain G. · @sgamel
66 followers · 934 posts · Server mastodon.top

I’m updating an app where my core data model is in a custom framework. I want to migrate new code to but I shave the dependency on the framework. Long term goal is to fully go with packages, but what is the best option for short term? Shall I wise custom Swift and linker option to add this framework dep? Or does a better option exists ?

#swift #swiftpackage

Last updated 2 years ago

Jay :verified_gay: · @heyjaywilson
664 followers · 687 posts · Server iosdev.space

Cut out a piece of the stream last night for a YouTube video. It shows how I create a new iOS app that uses a Swift Package for the source files.

youtu.be/VYAqP4cTfdU

#swift #swiftpackage #iosdev

Last updated 2 years ago

Sylvain G. · @sgamel
58 followers · 527 posts · Server mastodon.top

Writing things down made me realize that I forgot to try a simple task: manually copying an existing StoreKit configuration into the package using Finder. It will then appear in Xcode and can be selected in the target configuration. I am putting it down here in case it ever helps anyone. 😆

#swiftui #swiftpackage #storekit

Last updated 2 years ago

Sylvain G. · @sgamel
58 followers · 526 posts · Server mastodon.top

I'm working on a Swift package to handle my in-app purchases (simple and basic). I'd like to properly preview my views, and part of the model relies on the StoreKit Product struct. Option 1: mocking the Product does not seem to be an option. Option 2: use a StoreKit config file to get mocked products directly from StoreKit. I was confident with the latter, but Xcode or Swift packages do not seem to allow me to create one. Any good proposals/ideas?

#swiftui #swiftpackage #storekit

Last updated 2 years ago

Sylvain G. · @sgamel
57 followers · 447 posts · Server mastodon.top

Jumping the Swift Package bandwagon is not so easy. Created a small iOS 16 package but now Xcode refuses to understand my regular expression. I wonder what I did miss here 🤔

#swiftpackage #xcode #swift #error

Last updated 2 years ago