@alpennec@iosdev.space avatar

alpennec

@alpennec@iosdev.space

👨🏻‍💻 Swift/SwiftUI. Making http://indieapps.space/@Tizipizi. Angel Investor. Sea Lover ⛵️

This profile is from a federated server and may be incomplete. Browse more on the original instance.

twostraws, (edited ) to random
@twostraws@mastodon.social avatar

Tomorrow @mikaelacaron and I are recording episode 2 of @swiftovercoffee, and we'd love your reply to our open ballot question: having seen all the new features in iOS 17, what are you still missing from SwiftUI?

If you missed episode 1, listen here: https://podcasts.apple.com/gb/podcast/swift-over-coffee/id1435076502?i=1000615484798

alpennec,
@alpennec@iosdev.space avatar

@twostraws @swiftovercoffee @mikaelacaron the ability to present sheet/fullScreen/confirmationDialog/alert from Menu and swipeActions (I think these are lazy so these presentations does not work from within these containers). The issue is that I can't reuse a Button that present a paywall or a confirmationDialog etc. And need to have a binding from the button to host the sheet/dialog/alert elsewhere, outside the Menu or swipeAction.

alpennec, to SwiftUI
@alpennec@iosdev.space avatar

: can we control isAutosaveEnabled & isUndoEnabled when we manually create a ModelContainer? ModelConfiguration doesn’t have the option.

The view modifier allows us to specify these options, but not when we manually create the container.

Feedback:

alpennec,
@alpennec@iosdev.space avatar

Actually, we can access the container's mainContext to manually update the autosaveEnabled property and assign an UndoManager. But it's less practical.

alpennec,
@alpennec@iosdev.space avatar

@michaell I'm more talking about how to set up the container and ViewContext, but at the end, the undoManager and autosave is for the context. But the ModelContainer only has one main context + in SwiftUI, the modifier is for the modelContainer, not the modelContainer's context. https://developer.apple.com/documentation/swiftui/scene/modelcontainer(for:inmemory:isautosaveenabled:isundoenabled:onsetup:)-82y49

I'm sure Apple can improve the API the right way.

JTostitos, to random
@JTostitos@techhub.social avatar

Here’s a question I haven’t seen anyone ask yet.

With CoreData, you cannot use constraints with CloudKit.

With SwiftData there is the “@ Attribute(.unique)” property wrapper (?, if that’s what it’s called). Does this work with CloudKit? Hopefully.

alpennec,
@alpennec@iosdev.space avatar

@JTostitos I wrote the same question for a lab. I hope we’ll have more info!

alpennec,
@alpennec@iosdev.space avatar

@JTostitos I actually meant that! Not a 1-to-1 lab.

podomunro, to random
@podomunro@iosdev.space avatar

I get the excitement for “xrOS” and a potential headset, but I hope that's not what dominates the keynote. I hope that there's plenty of fun new features and APIs for iOS, watchOS, and macOS (AKA the stuff I already use).

I've never been convinced by VR, not least because I get intense motion sickness whenever I put a VR headset on.

alpennec,
@alpennec@iosdev.space avatar

@podomunro isn’t motion sickness due to technology that is not yet good enough or not ready yet? Apple will probably never ship a product that gives motion sickness imo. And display quality etc. should help with that.

alpennec,
@alpennec@iosdev.space avatar

@MuseumShuffle @podomunro trust Apple. I really think they have all these fears/considerations in mind, and won't ship a shitty product.

alpennec,
@alpennec@iosdev.space avatar

@MuseumShuffle @podomunro Like, would they have launched the iPhone if the screen was shit? Or the watch if the health data collection was shit? Or the AirPods Pro if the ANC was shit? Ok, sometimes they ship bad product (keyboards, Siri), but for such key part, I think they will polish.

alpennec,
@alpennec@iosdev.space avatar

@MuseumShuffle When I say screen is shit, I meant multi touch technology not ready. It was so much above what I've ever seen and touched before. Eye confort is more subjective, but I get your point.

alpennec, to random
@alpennec@iosdev.space avatar

Introducing https://indieapps.space/@TimeSlider!

I did’t want to miss any labs, sessions or activities… So I built an app to help me easily navigate through time zones.

Check it out & let me know what you think!

Join the beta: https://testflight.apple.com/join/IO6CTh5h

christianselig, to random
@christianselig@mastodon.social avatar

Got off my call with Reddit just now about the API. Bad news unless I come up with 20 million dollars (not joking). Appreciate boosts. https://www.reddit.com/r/apolloapp/comments/13ws4w3/had_a_call_with_reddit_to_discuss_pricing_bad/

alpennec,
@alpennec@iosdev.space avatar

@christianselig so sorry about this bad news! I hope Reddit will reconsider their pricing so we can continue to enjoy this service using your great app.

rhysmorgan, to random
@rhysmorgan@mastodon.social avatar

Is there a downside (other than more source code) to defining properties as Environment values instead of instance properties?

Obviously not everything should be in the Environment, but it makes writing multiple initialisers or adding new properties a lot easier in SwiftUI sometimes…

alpennec,
@alpennec@iosdev.space avatar

@rhysmorgan @Alexbbrown I recently switched from init arguments (dependencies) in my Views to using Environment keys because it allows to avoid View body recompilation when it's not needed. Like if a subview far away in the hierarchy needs to access the value, and re computation in parent views requires some unnecessary work. Using an ObservableObject with many Published properties will recompute other View bodies in the hiearchy so I prefer to use Environment keys and values. Maybe I'm wrong...

simonbs, to random
@simonbs@mastodon.social avatar

Did anyone manage to replicate the Health app’s charts using Swift Charts? The behavior I’m looking for is:

  1. The Y-axis doesn’t scroll with the content. It remains in place.
  2. Scrolls with pagination.
  3. Loads data on demand. I can’t be sure the Health app does this but it seems safe to assume.

Screen recording of the Health app showing the behavior I am interested in.

alpennec,
@alpennec@iosdev.space avatar

@simonbs yep, told you. This is something I really want in an update: https://iosdev.space/@alpennec/110459698625717132

alpennec, to random
@alpennec@iosdev.space avatar

My .accentColor defined in my Assets.xcassets catalog is not working for a new project: the default blue color is used. The "Global Accent Color Name" is correct in the target Build Settings. I tested on Xcode 14.2 and 14.3.

Has anyone else noticed the same?

alpennec,
@alpennec@iosdev.space avatar

@ctietze I created a new project, it worked. I added my files from the other project, it stops working... 🤯

alpennec,
@alpennec@iosdev.space avatar

@ctietze This is what I just did. I think I found the culprit. In my app init, I'm preparing some UIImpactFeedbackGenerator (calling the initialise method on my Class). If I remove this part (or move it to the onAppear), the accentColor is respected.

simonbs, to random
@simonbs@mastodon.social avatar

Spent the day working on a prototype for an app that I have had on my mind for a long time. It lets me track events I have defined myself.

Ultimately, it should answer the question “How often does this event occur?” but now I can at least start putting data into it.

video/mp4

alpennec,
@alpennec@iosdev.space avatar

@simonbs I don’t think you can replicate the scroll behavior of the Apple Health app unfortunately. I hope this will be the case in one week!

simonbs, to random
@simonbs@mastodon.social avatar

Pulling NSPersistentCloudKitContainer into my codebase and all I can see is a future filled with regret.

alpennec,
@alpennec@iosdev.space avatar

@matadan @simonbs can you share the bugs you encountered please? What wasn’t working?

simonbs, to random
@simonbs@mastodon.social avatar

I wonder if there'll be a framework to integrate with the upcoming journaling app for iOS. That could be interesting for an app idea I've had for a while 👀

alpennec,
@alpennec@iosdev.space avatar

@simonbs @agiletortoise from what I read, this app should focus on Health, so it will maybe be integrated into HealthKit: https://www.macrumors.com/2023/05/24/ios-17-journaling-app-mood-tracking/

stroughtonsmith, to random
@stroughtonsmith@mastodon.social avatar

🎙️ Got anything fun you're working on to show off before WWDC? New app? Update? Student Challenge submission? Concept art? Drop a reply here — include a screenshot, link-out, and use the hashtag if you'd like to be boosted. Do remember you can edit posts if you forget something

alpennec,
@alpennec@iosdev.space avatar

@stroughtonsmith Hi Steve, hope it’s not too late for a boost. Thanks again!

I’m currently building https://indieapps.space/@TimeSlider. It’s a fast & simple iPhone app to help you effortlessly master time zones and navigate through time with a simple slider. This will be perfect to make sure I don’t miss any labs or sessions!

Public TestFlight link: https://testflight.apple.com/join/IO6CTh5h

The app is built entirely in , uses for persistence and for data sync / cloud storage.

christianselig, to random
@christianselig@mastodon.social avatar

Silly SwiftUI question of the week: I want a view pushed to the bottom of the screen. On iPhones with home indicators, the safe area inset takes care of positioning it a nice distance from the bottom edge, but on older iPhones, it's smushed right up against the bottom since there's no safe area inset.

Is there a way to give a bit of nice visual spacing if there's no safe area inset already doing so?

alpennec,
@alpennec@iosdev.space avatar
alpennec,
@alpennec@iosdev.space avatar

@christianselig Oh yeah I see. You're right, this API will not work is there is no safe area 😞.

When I want to reproduce something like Apple Maps with a material below the status bar to blur the content, I played with GeometryReader that can provide the safeAreaInsets (top or bottom).

_Davidsmith, (edited ) to random
@_Davidsmith@mastodon.social avatar

I'm trying to determine if there is a regional/cultural difference of opinion in something. Imagine in your mind a numeric wheel counter (like you'd have in an old cars odometer or those hand counters you'll see people use at doors to events). It is currently showing 0001. From which direction would you expect the "2" to appear when it rotates in to replace the "1":

alpennec,
@alpennec@iosdev.space avatar

@_Davidsmith I guess we are now influenced by how iOS pickers and wheels behave. Higher numbers are at the end of the UIPickerView. Screenshot is iOS Clock app for example.

stroughtonsmith, to random
@stroughtonsmith@mastodon.social avatar

With all the buzz about Final Cut, it sure would have been a good time for me to have had my clapperboard app ready to go, huh? 😒

alpennec,
@alpennec@iosdev.space avatar

@stroughtonsmith Thanks for sharing your daily progress publicly! It's really interesting to see your development process.

Do you manually sync data using CloudKit or do you use a NSPSCK for Core Data + CloudKit?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • InstantRegret
  • mdbf
  • ethstaker
  • magazineikmin
  • cubers
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • provamag3
  • Durango
  • everett
  • tacticalgear
  • modclub
  • anitta
  • cisconetworking
  • tester
  • ngwrru68w68
  • GTA5RPClips
  • normalnudes
  • megavids
  • Leos
  • lostlight
  • All magazines