mirror of https://github.com/oxen-io/session-ios
WIP navbar resize
-[ ] CallScreen
-[x] functional button
-[ ] needs design
-[ ] disable other contact call buttons while in call
-[ ] iOS11
-[x] resize nav content
-[ ] background showing at top of all vc's
-[] iPhoneX
-[x] use differently sized banner for now
-[] mimic X system design
-[ ] iOS10
-[x] resize nav content
-[ ] animation glitch while push/pop
-[ ] iOS9
// FREEBIE
pull/1/head
parent
ffe17a3fcc
commit
0e87cbe7a5
@ -1,25 +0,0 @@
|
|||||||
//
|
|
||||||
// UIDevice+TSHardwareVersion.h
|
|
||||||
// Signal
|
|
||||||
//
|
|
||||||
// Created by Dylan Bourgeois on 19/12/14.
|
|
||||||
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
||||||
//
|
|
||||||
// Original Source :
|
|
||||||
// Erica Sadun, http://ericasadun.com
|
|
||||||
// iPhone Developer's Cookbook, 6.x Edition
|
|
||||||
// BSD License, Use at your own risk
|
|
||||||
//
|
|
||||||
//
|
|
||||||
|
|
||||||
#import <UIKit/UIKit.h>
|
|
||||||
|
|
||||||
|
|
||||||
@interface UIDevice (TSHardwareVersion)
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Returns true if device is iPhone 6 or 6+
|
|
||||||
*/
|
|
||||||
- (BOOL)isiPhoneVersionSixOrMore;
|
|
||||||
|
|
||||||
@end
|
|
||||||
@ -1,28 +0,0 @@
|
|||||||
//
|
|
||||||
// UIDevice+TSHardwareVersion.m
|
|
||||||
// Signal
|
|
||||||
//
|
|
||||||
// Created by Dylan Bourgeois on 19/12/14.
|
|
||||||
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
||||||
//
|
|
||||||
// Original Source :
|
|
||||||
// Erica Sadun, http://ericasadun.com
|
|
||||||
// iPhone Developer's Cookbook, 6.x Edition
|
|
||||||
// BSD License, Use at your own risk
|
|
||||||
//
|
|
||||||
//
|
|
||||||
|
|
||||||
#include <sys/sysctl.h>
|
|
||||||
#import "UIDevice+TSHardwareVersion.h"
|
|
||||||
|
|
||||||
@implementation UIDevice (TSHardwareVersion)
|
|
||||||
|
|
||||||
// Look for phone-type devices with a width greater than or equal to the width
|
|
||||||
// of the original iPhone 6. Hopefully, this is somewhat future proof
|
|
||||||
- (BOOL)isiPhoneVersionSixOrMore {
|
|
||||||
return
|
|
||||||
self.userInterfaceIdiom == UIUserInterfaceIdiomPhone &&
|
|
||||||
([[UIScreen mainScreen] scale] * [[UIScreen mainScreen] bounds].size.width) >= 750;
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
|
||||||
Loading…
Reference in New Issue