In this lesson, let's finish up the swiping photo feature by including the horizontal bars that help indicate which photo we're on. Its a simple feature to build out once you figure out how to calculate the indices of our photos. There's also a hook from with UIPageViewController that is fired when we finish swiping.

Comments (5)
Tube
4 years ago
It's no reflection on the course or on you, Brian, but the Tinder app looks like it was designed by programmers rather than designers. I find it busy, old-fashioned and downright ugly. On the real app, are the buttons animated or something?
Brian Voong
4 years ago
Cinquain
4 years ago
Video was lit
Brian Voong
4 years ago
Cinquain
4 years ago
Trying to become like you
Cinquain
4 years ago
That video was pure fire
Cinquain
4 years ago
Brian why don’t you call padding inside your anchor method margin instead. That’s a better reflection of what they are if you ask me
Brian Voong
4 years ago
joker45
3 years ago
Hi Brian, in iOS13, the function "UIApplication.shared.statusBarFrame.height" is depracted. 'statusBarFrame' was deprecated in iOS 13.0: Use the statusBarManager property of the window scene instead. i fixed it by use view.window?.windowScene?.statusBarManager?.statusBarFrame.height - but this only works in viewWillLayoutSubviews, so i have to move the anchor setting to this place. My question is now, is this really the best solution for this case? The "view.safeAreaLayoutGuide.topAnchor" method was not flipping in my simulator, maybe it be fixed by apple, but i still want to use your solution, because it feels more "robust". override func viewWillLayoutSubviews() { super.viewWillLayoutSubviews() let statusBarHeight = view.window?.windowScene?.statusBarManager?.statusBarFrame.height ?? 0 let paddinTop = statusBarHeight + 8 barStackView.anchor(top: view.topAnchor, leading: view.leadingAnchor, bottom: nil, trailing: view.trailingAnchor, padding: .init(top: paddinTop, left: 8, bottom: 0, right: 8), size: .init(width: 0, height: 4)) }
HELP & SUPPORT