Live data from Hacker News

Show HN: Train your leadership skills in 2 min a day [iOS app]

apps.apple.com

11–20 of 47 posts

Re: Show HN: Train your leadership skills in 2 min a day [iOS app]

#11

A beautiful piece of IOS app engineering! How did you make the UIPageViewController in SwiftUI at the beginning of the app? I also tried to use it but have not yet found a way to bridge the UIKit with SwiftUI.

we tried really hard to bridge the UIKit one, but had some bugs & crashes due to the PageController (the dots underneath). I think it is caused by the fact that a same SwiftUI @State is used by 2 UIKit "bridged" controllers, and is not operated in a thread safe way. So we ended up building it from scratch ourselves, in SwiftUI :)

Re: Show HN: Train your leadership skills in 2 min a day [iOS app]

#12

Learning something by doing it 2 mins a day seems like a steep promise.

It's definitely not going to be as fast & efficient as doing an MBA for sure, but our mission is to keep the app free for everyone, and even if you're only improving 1% every day, you're still setting yourself on track to have much better soft skills in a couple months

Re: Show HN: Train your leadership skills in 2 min a day [iOS app]

#15
post #14

Would like to try it when it comes out on Android :)

We're planning to start working on it in January, and I think we can get the first version out in late February. If you know good senior Android engineers, send them my way! (charles@bunch.ai, no CV required, let's just chat)

Re: Show HN: Train your leadership skills in 2 min a day [iOS app]

#17

How do you guys deal with @ObservedObject in iOS 13? I'm having issues with this because every change on state recreates my ViewModels and I can't use @StateObject because it's only available on iOS 14 and I have to support iOS 13 users.

ohhh, that's a tough one. @StateObject is definitely making things easier, but the trick we've used for now (we’re still targeting iOS 13) is to wrap ViewModels in @State in a parent view, and pass it down to your view as an @EnvironmentObject.

When the subview changes/re-renders, your ViewModel stay the same on the parent view and is not recreated as it is a @State; and your subview can still listen to @PUublished changes.

We've made a generic wrapper for it, and we use almost everywhere:

  struct ViewModelWrapper: View {
    private let contentView: V
    @State private var contentViewModel: ViewModel

    init(contentView: @autoclosure () -> V, vm: @autoclosure () -> ViewModel) {
        self._contentViewModel = State(initialValue: vm())
        self.contentView = contentView()
    }

    var body: some View {
        contentView
            .environmentObject(contentViewModel)
    }
  }

Re: Show HN: Train your leadership skills in 2 min a day [iOS app]

#18
I wish you had something about your background. Leadership is one of the most difficult skills to learn and there's load of BS out there. I learned this the hard way when I was growing my first company. Personally I don't trust anyone to give me "management" advice, unless they've personally successfully been through the grind.

Re: Show HN: Train your leadership skills in 2 min a day [iOS app]

#19

I wish you had something about your background. Leadership is one of the most difficult skills to learn and there's load of BS out there. I learned this the hard way when I was growing my first company. Personally I don't trust anyone to give me "management" advice, unless they've personally successfully been through the grind.

Definitely, we actually come from a super nerdy psych background: it took us 3 years and 5 failed products to learn how to make the “science” approachable. We have a partnership with Stanford who developed the psychological model we’re basing everything on (from Charles O’Reilly, https://www.gsb.stanford.edu/faculty-research/faculty/charle...).

As for the rest, we have as many psychologists in house as we have software engineers, if that speaks for anything. Also after building our startup for 4 years now, we have definitely been through the grind (still going through it), and don’t push stuff that we wouldn’t use ourselves.

Post reply on HN