Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
obrhoff
@obrhoff@mastodon.social  ·  activity timestamp 3 weeks ago

Replaced the Progress Indicator in Daft Music that was originally the SwiftUI slider with a custom version that is written with CoreAnimation and is wrapped in a NSViewRepresentable. (Also, the progress is now fully animated)

CPU Usage went down while playing from 3-4% to 0%.

I'm not that person that wants Objective-C and AppKit back, but often I have to drop down to optimize for things and it's not that SwiftUI is often easier than straight Core Animation.
#swiftui #appkit #macosdev #iosdev

  • Copy link
  • Flag this post
  • Block
Helge Heß
@helge@mastodon.social replied  ·  activity timestamp 3 weeks ago

@obrhoff "Drop up", not "drop down" ;-)

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login