@ -74,11 +74,19 @@ class AddContactShareToExistingContactViewController: ContactsPicker, ContactsPi
 
		
	
		
			
				        contactViewController . allowsEditing  =  true 
 
		
	
		
			
				        contactViewController . delegate  =  self 
 
		
	
		
			
				
 
		
	
		
			
				        guard  let  navigationController  =  self . navigationController  else  { 
 
		
	
		
			
				            owsFail ( " \( logTag )  in  \( #function )  navigationController was unexpectedly nil " ) 
 
		
	
		
			
				            return 
 
		
	
		
			
				        let  modal  =  OWSNavigationController ( rootViewController :  contactViewController ) 
 
		
	
		
			
				
 
		
	
		
			
				        //   H A C K   o t h e r w i s e   C N C o n t a c t V i e w C o n t r o l l e r   N a v b a r   i s   s h o w s   w i n d o w   b a c k g r o u n d   c o l o r . 
 
		
	
		
			
				        //   R A D A R   r d a r : / / 2 8 4 3 3 8 9 8   h t t p : / / w w w . o p e n r a d a r . m e / 2 8 4 3 3 8 9 8 
 
		
	
		
			
				        //   C N C o n t a c t V i e w C o n t r o l l e r   i n c o m p a t i b l e   w i t h   o p a q u e   n a v i g a t i o n   b a r 
 
		
	
		
			
				        modal . navigationBar . isTranslucent  =  true 
 
		
	
		
			
				        if  #available ( iOS  10 ,  * )  { 
 
		
	
		
			
				            //   C o n t a c t   n a v b a r   i s   b l u e   i n   i O S 9 ,   s o   o u r   w h i t e   t e x t   w o r k s , 
 
		
	
		
			
				            //   b u t   g r a y   o n   i O S 1 0 + ,   i n   w h i c h   c a s e   w e   w a n t   t h e   s y s t e m   d e f a u l t   b l a c k   t e x t . 
 
		
	
		
			
				            UIUtil . applyDefaultSystemAppearence ( ) 
 
		
	
		
			
				        } 
 
		
	
		
			
				        navigationController . pushViewController ( contactViewController ,  animated :  true ) 
 
		
	
		
			
				
 
		
	
		
			
				        self . present ( modal ,  animated :  true ) 
 
		
	
		
			
				    } 
 
		
	
		
			
				
 
		
	
		
			
				    func  contactsPicker ( _ :  ContactsPicker ,  didSelectMultipleContacts  contacts :  [ Contact ] )  { 
 
		
	
	
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
				
			
			@ -126,8 +134,21 @@ class AddContactShareToExistingContactViewController: ContactsPicker, ContactsPi
 
		
	
		
			
				            return 
 
		
	
		
			
				        } 
 
		
	
		
			
				
 
		
	
		
			
				        //   H A C K   o t h e r w i s e   C N C o n t a c t V i e w C o n t r o l l e r   N a v b a r   i s   s h o w s   w i n d o w   b a c k g r o u n d   c o l o r . 
 
		
	
		
			
				        //   R A D A R   r d a r : / / 2 8 4 3 3 8 9 8   h t t p : / / w w w . o p e n r a d a r . m e / 2 8 4 3 3 8 9 8 
 
		
	
		
			
				        //   C N C o n t a c t V i e w C o n t r o l l e r   i n c o m p a t i b l e   w i t h   o p a q u e   n a v i g a t i o n   b a r 
 
		
	
		
			
				        navigationController . navigationBar . isTranslucent  =  false 
 
		
	
		
			
				        if  #available ( iOS  10 ,  * )  { 
 
		
	
		
			
				            //   C o n t a c t   n a v b a r   i s   b l u e   i n   i O S 9 ,   s o   o u r   w h i t e   t e x t   w o r k s , 
 
		
	
		
			
				            //   b u t   g r a y   o n   i O S 1 0 + ,   i n   w h i c h   c a s e   w e   w a n t   t h e   s y s t e m   d e f a u l t   b l a c k   t e x t . 
 
		
	
		
			
				            UIUtil . applySignalAppearence ( ) 
 
		
	
		
			
				        } 
 
		
	
		
			
				
 
		
	
		
			
				        let  previousViewControllerIndex  =  navigationController . viewControllers . index ( before :  myIndex ) 
 
		
	
		
			
				        let  previousViewController  =  navigationController . viewControllers [ previousViewControllerIndex ] 
 
		
	
		
			
				        navigationController . popToViewController ( previousViewController ,  animated :  true ) 
 
		
	
		
			
				
 
		
	
		
			
				        self . dismiss ( animated :  false )  { 
 
		
	
		
			
				            navigationController . popToViewController ( previousViewController ,  animated :  true ) 
 
		
	
		
			
				        } 
 
		
	
		
			
				    } 
 
		
	
		
			
				}