CosmicMind / CosmicMind/Material

TabsController got Black View when Switching tab

Open
#1,293 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
12k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

May I know is it any reasonable problem for this ?
Because when I switch either through pan gesture or select tab bar, will got black screen appear while holding gesture, and disappear when release gesture.

Material -> 3.1.8
Motion -> 3.1.3

import Material
class ProfileTabBarViewController: TabsController {

open override func prepare(){
super.prepare()
delegate = self
preparePageTabBar()
tabBarAlignment = .top
tabBar.lineColor = .brown
tabsController?.isThemingEnabled = false // no effect whether comment this or no
}

fileprivate func preparePageTabBar() {
tabBar.lineColor = Color.blueGrey.base
tabBar.dividerColor = Color.blueGrey.lighten5
tabBar.lineAlignment = .bottom
}
}

class MyProfileVC: UIViewController {

var tabController: ProfileTabBarViewController!

let profileDetailsVC:ProfileDetailsVC = {
let vc = ProfileDetailsVC()
vc.tabItem.title = "PROFILE DETAILS".localized()
vc.tabItem.titleColor = UIColor.gray
return vc
}()

let profileMoreDetailsVC: profileMoreDetailsVC = {
let vc = profileMoreDetailsVC()
vc.tabItem.title = "PROFILE MORE DETAILS".localized()
vc.tabItem.titleColor = UIColor.gray

return vc
}()

override func viewDidLoad() {
super.viewDidLoad()
tabController = ProfileTabBarViewController(viewControllers: [profileDetailsVC, profileMoreDetailsVC], selectedIndex: 0)
tabController.didMove(toParent: self)
}
}
[RPReplay_Final1582700212.mov.zip](https://github.com/CosmicMind/Material/files/4253881/RPReplay_Final1582700212.mov.zip)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the black screen during pan-gesture and tab-bar transitions in the provided ProfileTabBarViewController and MyProfileVC setup, using the attached recording as the reference. Read the TabsController transition behavior and determine whether the issue occurs with either switching method; done means both transitions complete without showing a black view.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.