Skip to content

Commit d805345

Browse files
author
queue-it
committed
Preparing release 3.0.13
1 parent 8c3a144 commit d805345

File tree

4 files changed

+26
-18
lines changed

4 files changed

+26
-18
lines changed

QueueITLib/QueueConsts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
#define QueueCloseUrl @"queueit://close"
55
#define QueueRestartSessionUrl @"queueit://restartSession"
6-
#define SDKVersion @"iOS-3.0.12";
6+
#define SDKVersion @"iOS-3.0.13";
77

88
#endif

QueueITLib/QueueITWKViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020

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

23-
@end
23+
@end

QueueITLib/QueueITWKViewController.m

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,30 +84,38 @@ - (BOOL)handleSpecialUrls:(NSURL*) url
8484

8585
- (void)viewDidLoad {
8686
[super viewDidLoad];
87-
88-
WKPreferences* preferences = [[WKPreferences alloc]init];
89-
preferences.javaScriptEnabled = YES;
90-
WKWebViewConfiguration* config = [[WKWebViewConfiguration alloc]init];
91-
config.preferences = preferences;
92-
WKWebView* view = [[WKWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height) configuration:config];
93-
view.navigationDelegate = self;
94-
self.webView = view;
95-
[self.webView setAutoresizingMask: UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth];
9687
}
9788

9889
- (void)viewWillAppear:(BOOL)animated{
9990
[super viewWillAppear:animated];
100-
101-
self.spinner = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height)];
91+
}
92+
93+
-(void)viewWillLayoutSubviews{
94+
[super viewWillLayoutSubviews];
95+
self.spinner = [[UIActivityIndicatorView alloc]initWithFrame:self.view.bounds];
10296
[self.spinner setColor:[UIColor grayColor]];
10397
[self.spinner startAnimating];
10498

99+
WKPreferences* preferences = [[WKPreferences alloc]init];
100+
preferences.javaScriptEnabled = YES;
101+
WKWebViewConfiguration* config = [[WKWebViewConfiguration alloc]init];
102+
config.preferences = preferences;
103+
WKWebView* webview = [[WKWebView alloc]initWithFrame:self.view.bounds configuration:config];
104+
webview.navigationDelegate = self;
105+
[webview setAutoresizingMask: UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth];
106+
// Make webview transparent
107+
webview.opaque = NO;
108+
webview.backgroundColor = [UIColor clearColor];
109+
self.webView = webview;
110+
105111
[self.view addSubview:self.webView];
106112
[self.webView addSubview:self.spinner];
107113

108-
NSURL *urlAddress = [NSURL URLWithString:self.queueUrl];
109-
NSURLRequest *request = [NSURLRequest requestWithURL:urlAddress];
110-
[self.webView loadRequest:request];
114+
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.queueUrl]]];
115+
}
116+
117+
-(void)viewDidAppear:(BOOL)animated{
118+
[super viewDidAppear:animated];
111119
}
112120

113121
- (void)viewDidDisappear:(BOOL)animated

QueueITLibrary.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |s|
22
s.name = "QueueITLibrary"
3-
s.version = "3.0.12"
3+
s.version = "3.0.13"
44
s.summary = "Library for integrating Queue-it into an iOS app using web uI"
55
s.homepage = "https://github.com/queueit/ios-webui-sdk"
66
s.license = 'MIT'
77
s.authors = { 'Queue-It' => 'https://queue-it.com' }
88
s.platform = :ios, '9.3'
9-
s.source = { :git => 'https://github.com/queueit/ios-webui-sdk.git', :tag => '3.0.12' }
9+
s.source = { :git => 'https://github.com/queueit/ios-webui-sdk.git', :tag => '3.0.13' }
1010
s.requires_arc = true
1111
s.source_files = "QueueITLib/*.{h,m}"
1212
end

0 commit comments

Comments
 (0)