Skip to content

Commit

Permalink
Preparing release 3.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
queue-it committed May 4, 2022
1 parent 8c3a144 commit d805345
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion QueueITLib/QueueConsts.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

#define QueueCloseUrl @"queueit://close"
#define QueueRestartSessionUrl @"queueit://restartSession"
#define SDKVersion @"iOS-3.0.12";
#define SDKVersion @"iOS-3.0.13";

#endif
2 changes: 1 addition & 1 deletion QueueITLib/QueueITWKViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@

- (BOOL) isBlockedUrl:(nonnull NSURL*) destinationUrl;

@end
@end
36 changes: 22 additions & 14 deletions QueueITLib/QueueITWKViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,30 +84,38 @@ - (BOOL)handleSpecialUrls:(NSURL*) url

- (void)viewDidLoad {
[super viewDidLoad];

WKPreferences* preferences = [[WKPreferences alloc]init];
preferences.javaScriptEnabled = YES;
WKWebViewConfiguration* config = [[WKWebViewConfiguration alloc]init];
config.preferences = preferences;
WKWebView* view = [[WKWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height) configuration:config];
view.navigationDelegate = self;
self.webView = view;
[self.webView setAutoresizingMask: UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth];
}

- (void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];

self.spinner = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height)];
}

-(void)viewWillLayoutSubviews{
[super viewWillLayoutSubviews];
self.spinner = [[UIActivityIndicatorView alloc]initWithFrame:self.view.bounds];
[self.spinner setColor:[UIColor grayColor]];
[self.spinner startAnimating];

WKPreferences* preferences = [[WKPreferences alloc]init];
preferences.javaScriptEnabled = YES;
WKWebViewConfiguration* config = [[WKWebViewConfiguration alloc]init];
config.preferences = preferences;
WKWebView* webview = [[WKWebView alloc]initWithFrame:self.view.bounds configuration:config];
webview.navigationDelegate = self;
[webview setAutoresizingMask: UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth];
// Make webview transparent
webview.opaque = NO;
webview.backgroundColor = [UIColor clearColor];
self.webView = webview;

[self.view addSubview:self.webView];
[self.webView addSubview:self.spinner];

NSURL *urlAddress = [NSURL URLWithString:self.queueUrl];
NSURLRequest *request = [NSURLRequest requestWithURL:urlAddress];
[self.webView loadRequest:request];
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.queueUrl]]];
}

-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
}

- (void)viewDidDisappear:(BOOL)animated
Expand Down
4 changes: 2 additions & 2 deletions QueueITLibrary.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = "QueueITLibrary"
s.version = "3.0.12"
s.version = "3.0.13"
s.summary = "Library for integrating Queue-it into an iOS app using web uI"
s.homepage = "https://github.com/queueit/ios-webui-sdk"
s.license = 'MIT'
s.authors = { 'Queue-It' => 'https://queue-it.com' }
s.platform = :ios, '9.3'
s.source = { :git => 'https://github.com/queueit/ios-webui-sdk.git', :tag => '3.0.12' }
s.source = { :git => 'https://github.com/queueit/ios-webui-sdk.git', :tag => '3.0.13' }
s.requires_arc = true
s.source_files = "QueueITLib/*.{h,m}"
end

0 comments on commit d805345

Please sign in to comment.