Skip to content

Commit

Permalink
Merge branch 'release/3.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
defagos committed Mar 12, 2020
2 parents ff34f6a + 3877469 commit 58ec5b7
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 443 deletions.
70 changes: 8 additions & 62 deletions CoconutKit.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions Demo/Resources/HTML/sample_text.html

This file was deleted.

20 changes: 0 additions & 20 deletions Demo/Resources/HTML/sample_text_with_custom_font.html

This file was deleted.

3 changes: 0 additions & 3 deletions Demo/Sources/AppDelegate/CoconutKit_demoAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
self.window.backgroundColor = [UIColor blackColor];
[self.window makeKeyAndVisible];

// Use optional preloading provided by CoconutKit
[application preload];

// Instead of using the UIAppFonts key in the plist to load the Beon font, do it in code
[UIFont loadFontWithFileName:@"Beon-Regular.otf" inBundle:nil];

Expand Down
8 changes: 0 additions & 8 deletions Demo/Sources/Demos/Core/Fonts/FontsDemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
@interface FontsDemoViewController ()

@property (nonatomic, weak) IBOutlet UILabel *label;
@property (nonatomic, weak) IBOutlet UIWebView *webView;

@end

Expand All @@ -22,13 +21,6 @@ - (void)viewDidLoad
[super viewDidLoad];

self.label.font = [UIFont fontWithName:@"Beon-Regular" size:20.f];

// Make the webview look nice :)
[self.webView fadeTop:0.02f bottom:0.02f];

NSString *htmlFilePath = [[NSBundle mainBundle] pathForResource:@"sample_text_with_custom_font" ofType:@"html"];
NSString *htmlText = [NSString stringWithContentsOfFile:htmlFilePath encoding:NSUTF8StringEncoding error:NULL];
[self.webView loadHTMLString:htmlText baseURL:[NSBundle mainBundle].bundleURL];
}

#pragma mark Orientation management
Expand Down
26 changes: 9 additions & 17 deletions Demo/Sources/Demos/Core/Fonts/FontsDemoViewController.xib
Original file line number Diff line number Diff line change
@@ -1,44 +1,36 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES">
<device id="ipad9_7" orientation="portrait" layout="fullscreen" appearance="light"/>
<dependencies>
<deployment defaultVersion="1280" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6238"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="FontsDemoViewController">
<connections>
<outlet property="label" destination="95" id="96"/>
<outlet property="view" destination="2" id="94"/>
<outlet property="webView" destination="97" id="98"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="2">
<rect key="frame" x="0.0" y="0.0" width="768" height="1004"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Lorem ipsum dolor sit amet, consectetur adipisicing elit" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="95">
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" fixedFrame="YES" text="Lorem ipsum dolor sit amet, consectetur adipisicing elit" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="95">
<rect key="frame" x="20" y="184" width="728" height="60"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<webView contentMode="scaleToFill" id="97">
<rect key="frame" x="111" y="331" width="547" height="489"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</webView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics"/>
<simulatedNavigationBarMetrics key="simulatedTopBarMetrics" prompted="NO"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="131" y="139"/>
</view>
</objects>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination"/>
</simulatedMetricsContainer>
</document>
14 changes: 0 additions & 14 deletions Demo/Sources/Demos/View/WebView/WebViewDemoViewController.h

This file was deleted.

39 changes: 0 additions & 39 deletions Demo/Sources/Demos/View/WebView/WebViewDemoViewController.m

This file was deleted.

35 changes: 0 additions & 35 deletions Demo/Sources/Demos/View/WebView/WebViewDemoViewController.xib

This file was deleted.

0 comments on commit 58ec5b7

Please sign in to comment.