title: Using code from objective c .m file in swift
body: <p>I've been assigned a project in objective C, though i need to add on top of it with swift. I added a bridging header file and can access the methods in my .h file. </p>
  
  <p>I'm trying to access IBOutlets in my .m file although I can't access them (for they aren't public). I can I access these outlets? Or rather, how can I make those properties public/accessible. </p>
  
  <p>Here is the .h file:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface SignUpVC : UIViewController
  
  @end
  </code></pre>
  
  <p>here is the .m file:</p>
  
  <pre><code>#import &lt;FBSDKCoreKit/FBSDKCoreKit.h&gt;
  #import &lt;FBSDKLoginKit/FBSDKLoginKit.h&gt;
  #import "GuidedContentScreen.h"
  #import "SignUpVC.h"
  #import "LoginVC.h"
  #import "FollowUnFollowScreen.h"
  
  @interface SignUpVC ()&lt;UITextFieldDelegate,UIGestureRecognizerDelegate,UITextFieldDelegate&gt;
  {
      IBOutlet UIScrollView *scrllVw;
      IBOutlet UITextField *txtUsername;
      IBOutlet UITextField *txtEmail;
      IBOutlet UITextField *txtPassword;
      __weak IBOutlet UIView *vwBgVideo;
          CMTime vdoCurrentTime;
  
      NSArray *arrayCurseWords;
  }
  @property (strong,nonatomic)id timeObserver;
  @property(strong,nonatomic)AVAssetImageGenerator *imageGenerator;
  @property (strong, nonatomic) IBOutlet UIImageView *containerThumbnailView;
  @property(strong,nonatomic)AVPlayer *avPlayer;
  @property(strong,nonatomic)AVPlayerItem *avPlayerItem;
  @property(strong,nonatomic)AVAsset *avAsset;
  @property(strong,nonatomic)AVPlayerLayer *avPlayerLayer;
  @property (weak, nonatomic) IBOutlet UIButton *getStartedButton;
  @end
  
  @implementation SignUpVC
  
  
  
  -(void)viewWillAppear:(BOOL)animated
  {
      [super viewWillAppear:YES];
  
      [[UIApplication sharedApplication]setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
      [[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleLightContent];
  
      if (self.avPlayer)
      {
          [self.avPlayer play];
      }
      else
      {
          [self playVideo];
      }
  
      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(appEnteredForeground) name:UIApplicationWillEnterForegroundNotification object:nil];
      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(appEnteredBackground) name:UIApplicationDidEnterBackgroundNotification object:nil];
      [[NSNotificationCenter defaultCenter] addObserver:self
                                               selector:@selector(playerItemDidReachEnd:)
                                                   name:AVPlayerItemDidPlayToEndTimeNotification
                                                 object:[self.avPlayer currentItem]];
  
  }
  -(void)viewWillDisappear:(BOOL)animated
  {
  //        [self.avPlayer removeTimeObserver:self.timeObserver];
      [[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationWillEnterForegroundNotification object:nil];
      [[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidEnterBackgroundNotification object:nil];
      [[NSNotificationCenter defaultCenter] removeObserver:self name:AVPlayerItemDidPlayToEndTimeNotification object:nil];
      [self.avPlayer pause];
      [super viewWillDisappear:animated];
  }
  </code></pre>
  
  <p>Here is my bridging header file:</p>
  
  <pre><code>#import "SignUpVC.h"
  </code></pre>