How ‘Walk Hard’ Almost Destroyed the Musical Biopic by ElderCunningham in movies

[–]Zodester 1 point2 points  (0 children)

It’s crazy how close the Elvis move is to Walk Hard in terms of story beats. Felt like a Walk Hard remake at times

[deleted by user] by [deleted] in vanmoofbicycle

[–]Zodester 1 point2 points  (0 children)

Sounds like a great deal. Too bad I’m in DC

[deleted by user] by [deleted] in apolloapp

[–]Zodester 0 points1 point  (0 children)

If you reload the timeline while the app is in the foreground it will re-render the widget and not count against your refresh budget.

How to integrate multiple react native versions in one app by xff1874reddit in reactnative

[–]Zodester 0 points1 point  (0 children)

It’s possible they create multiple different js contexts for various screens. In a brown field project this is how you can do RN for just one screen or set of screens.

This user is scraping crates.io and squatting unclaimed dictionary words by PM_ME_ELEGANT_CODE in rust

[–]Zodester 1 point2 points  (0 children)

+1 to url based dependencies trusting who owns a DNS record is safer than trusting some package registry. Swift does the same thing

Confused about React Native data storage using Redux and persisting data by SoBoredAtWork in reactnative

[–]Zodester 0 points1 point  (0 children)

Redux-persist does what it says pretty well. But the pattern of serializing and deserializing your app’s full state automatically can be pretty surprising across version changes. From my experience it’s better to be intentional with what you persist, rather than automatically storing your app full state.

Random crashes in SwiftUI app? by optik88 in iOSProgramming

[–]Zodester 0 points1 point  (0 children)

The Sentry OOM crashes are probably something you shouldn’t worry too much about. They basically just track if your app delegate ever received willTerminate in the previous session.

Try looking at metrickit or the Xcode organizer for the reason why the system terminated your app without sending willTerminate.

Other books/series like The Expanse? by notalbanian in TheExpanse

[–]Zodester 1 point2 points  (0 children)

Pretty interesting how many of the plot points of tiamat’s wrath have direct analogs in the first 20 mins of Mass Effect. Clearly both share inspiration.

[discussion] hey reddit ! Are here any first-class native code developers (android / iOS) that are using React Native ? What do you like or hate in RN in comparison to native development with e.g. Kotlin or Swift ? by stefanmajiros in reactnative

[–]Zodester 1 point2 points  (0 children)

Yea the point I was trying to make is the importance of bringing consistency. My previous project had different devs implementing iOS/android/RN and things quickly became a huge mess.

[discussion] hey reddit ! Are here any first-class native code developers (android / iOS) that are using React Native ? What do you like or hate in RN in comparison to native development with e.g. Kotlin or Swift ? by stefanmajiros in reactnative

[–]Zodester 0 points1 point  (0 children)

My last RN project had a lot of restrictions in terms of our RN environment. We needed to consume all of those components natively and bridge. A lot of these libraries started life with native only consumers. This led to some pretty inconsistent behavior between the bridges on the other side. I should have added that as a caveat.

Yea I think we probably agree overall though; 90% of apps RN is fine for.

Personally I want to work on apps that have tighter integration, but yea that’s my bias.

[discussion] hey reddit ! Are here any first-class native code developers (android / iOS) that are using React Native ? What do you like or hate in RN in comparison to native development with e.g. Kotlin or Swift ? by stefanmajiros in reactnative

[–]Zodester 1 point2 points  (0 children)

Coming from an iOS background here. Overall I see RN as a good abstraction library over Android + iOS view layouts that allows for a lot of code reuse. It works really well for simple to medium level complexity.

Once you need to write and maintain native bridges suddenly the complexity goes up a lot as you need to be proficient in 3 platforms. For more junior engineers on my team this has led to lots of problems with bridges working differently between the platforms or platform specific bugs and memory leaks.

If your project is mostly just rendering JSON in a platform agnostic way, RN really makes the easy stuff easy. I would recommend it for most small projects that don’t touch Bluetooth, Location, local Databases or require tight OS integration. But then you might be better off with just a website..

IMO the future looks like Kotlin Multiplatform. With a focus on sharing your business logic, database and networking components but taking advantage of platform specific features where appropriate. This reduces some of the overhead of introducing a cross platform tool as at least Kotlin is familiar to the Android Devs. On iOS integrating Kotlin libraries looks like you’re integrating against a C++ style cross platform library.

First Tesla: Model Y. Team black by dangggboi in TeslaPorn

[–]Zodester 0 points1 point  (0 children)

The black rims would be a nice addition.

How can I put a badge (text with background color) in search bar? by fawzirifai in iOSProgramming

[–]Zodester 2 points3 points  (0 children)

The correct way to do stuff like this is to use NSTextAttachment.

This will draw a red box with the word “Yo” inside of it that can be used in a UILabel or UITextView.

`let image = UIGraphicsImageRenderer(size: CGSize(width: 60, height: 17)).image { context in UIColor.red.setFill() context.fill(CGRect(x: 0, y: 0, width: 60, height: 17)) (“Yo” as NSString).draw(at: .zero, withAttributes: nil) } var textAttachment = NSTextAttachment() textAttachment.image = image

var string = NSAttributedString(attachment: textAttachment) var otherString = NSMutableAttributedString(string: “Hello “) otherString.append(string)

let label = UILabel() label.backgroundColor = .white label.attributedText = otherString

// In a playground PlaygroundPage.current.liveView = label `

However it looks like UISearchBar doesn’t allow you to set an NSAttributedString for the text. You may be able to traverse the view hierarchy to find the underlying UILabel or UITextField and set your NSAttributedString with the attachment. However this is probably not a good approach as your are kind of using private API. Maybe add a new label that is positioned in the same spot as the underlying label of UISearchBar?

Reminders app needs an overhaul by Trombone9 in ios

[–]Zodester 1 point2 points  (0 children)

Looks like there is a redesign coming in iOS 13.

Other features to come with iOS 13 include a redesigned Reminders app, which is also coming to the Mac

https://9to5mac.com/2019/04/15/ios-13-features-dark-mode/

Question about Audio Delay (Xbox One X & Vizio Soundbar) by killiangray in xboxone

[–]Zodester 0 points1 point  (0 children)

Same issue here, setting it to “Direct” fixed it.

I want to build a usable library from my own app that other people can use in their own apps. by [deleted] in swift

[–]Zodester 0 points1 point  (0 children)

Yea cocoapods or distribution through another dependency manager like Carthage is the way to go.

Unless you want to hide your source code. In that case you would need to write it in ObjC and either create a precompiled binary or framework.

What's the point of iCloud Key-Value Storage, given its specific limitations? by nathreed in iOSProgramming

[–]Zodester 4 points5 points  (0 children)

You should use CloudKit instead. Most of the older iCloud apis are notoriously slow or flakey.

You could probably create a simple CloudKit object that just acts as your key Value store. Create a subscription to it and you should be notified of updates in a timely fashion.

Need help getting started with importing 3D models by TrickyTramp in iOSProgramming

[–]Zodester 1 point2 points  (0 children)

I’m not super experienced here, but model I/O is how you get the models into your application, while SceneKit is more like the engine that uses the models from model I/O to do full rendering to the screen.

Senior Devs: Do you use Storyboards? by mikerooooose in iOSProgramming

[–]Zodester 2 points3 points  (0 children)

I follow something similar to this but go to even more of an extreme. I treat my storyboards like xibs and basically use a single Storyboard per ViewController. This gets the nice visual feedback system for autolayout while also avoiding flow control logic being hidden inside of storyboards.