Update project structure

This commit is contained in:
Loïc GRIFFIE 2019-02-27 17:56:52 +01:00
parent 68e51ce041
commit b5ec4dea98
13 changed files with 113 additions and 59 deletions

View File

@ -119,15 +119,12 @@
isa = PBXGroup;
children = (
6D5660F4221EC6B200014498 /* AppDelegate.swift */,
6D566143221EF98000014498 /* ThemeManager.swift */,
F3E2FC982226F86F008476BE /* Storyboards */,
6D566122221EE83900014498 /* Pages */,
6D5660F6221EC6B200014498 /* MainVC.swift */,
6D5660F8221EC6B200014498 /* Main.storyboard */,
6D566141221EECAF00014498 /* MUColor.swift */,
F3C1DDB72226E2BC006081AE /* MUView.swift */,
6D5660FB221EC6B400014498 /* Assets.xcassets */,
6D5660FD221EC6B400014498 /* LaunchScreen.storyboard */,
F3E2FC972226F85D008476BE /* Extensions */,
F3E2FC992226F88C008476BE /* Helpers */,
6D566100221EC6B400014498 /* Info.plist */,
6D5660FB221EC6B400014498 /* Assets.xcassets */,
);
path = Sample;
sourceTree = "<group>";
@ -149,6 +146,33 @@
path = SampleUITests;
sourceTree = "<group>";
};
F3E2FC972226F85D008476BE /* Extensions */ = {
isa = PBXGroup;
children = (
6D566141221EECAF00014498 /* MUColor.swift */,
F3C1DDB72226E2BC006081AE /* MUView.swift */,
);
path = Extensions;
sourceTree = "<group>";
};
F3E2FC982226F86F008476BE /* Storyboards */ = {
isa = PBXGroup;
children = (
6D5660F8221EC6B200014498 /* Main.storyboard */,
6D5660FD221EC6B400014498 /* LaunchScreen.storyboard */,
);
path = Storyboards;
sourceTree = "<group>";
};
F3E2FC992226F88C008476BE /* Helpers */ = {
isa = PBXGroup;
children = (
6D5660F6221EC6B200014498 /* MainVC.swift */,
6D566143221EF98000014498 /* ThemeManager.swift */,
);
path = Helpers;
sourceTree = "<group>";
};
F3F3BA362220366900B01B42 /* Frameworks */ = {
isa = PBXGroup;
children = (

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Slice.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "Slice@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "Slice@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -1,25 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>

View File

@ -0,0 +1,16 @@
//
// ThemeManager.swift
// MUSample
//
// Created by Damien Noël Dubuisson on 21/02/2019.
// Copyright © 2019 Damien Noël Dubuisson. All rights reserved.
//
import Sejima
class ThemeManager {
static func uiAppearenceMUButton() {
}
}

View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Logo" translatesAutoresizingMaskIntoConstraints="NO" id="kCW-6w-rBj">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
</imageView>
</subviews>
<color key="backgroundColor" red="0.031372549019607843" green="0.40392156862745099" blue="0.53333333333333333" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="kCW-6w-rBj" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="4sY-nK-JXE"/>
<constraint firstItem="kCW-6w-rBj" firstAttribute="trailing" secondItem="6Tk-OE-BBY" secondAttribute="trailing" id="Jwp-rd-wCA"/>
<constraint firstItem="kCW-6w-rBj" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="Vmy-gJ-E3k"/>
<constraint firstItem="kCW-6w-rBj" firstAttribute="bottom" secondItem="6Tk-OE-BBY" secondAttribute="bottom" id="gop-2V-zw3"/>
</constraints>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="52" y="374.66266866566718"/>
</scene>
</scenes>
<resources>
<image name="Logo" width="400" height="400"/>
</resources>
</document>

View File

@ -1,27 +0,0 @@
//
// ThemeManager.swift
// MUSample
//
// Created by Damien Noël Dubuisson on 21/02/2019.
// Copyright © 2019 Damien Noël Dubuisson. All rights reserved.
//
import Sejima
class ThemeManager {
static func uiAppearenceMUButton() {
for vc in [UIAppearenceFakeView.self] {
MUButton.appearance(whenContainedInInstancesOf: [vc]).buttonBackgroundColor = .black
MUButton.appearance(whenContainedInInstancesOf: [vc]).borderColor = .red
MUButton.appearance(whenContainedInInstancesOf: [vc]).progressColor = .red
MUButton.appearance(whenContainedInInstancesOf: [vc]).titleFont = .systemFont(ofSize: 14.0, weight: .bold)
MUButton.appearance(whenContainedInInstancesOf: [vc]).cornerRadius = 0.0
MUButton.appearance(whenContainedInInstancesOf: [vc]).borderWidth = 1.0
MUButton.appearance(whenContainedInInstancesOf: [vc]).titleColor = .white
MUButton.appearance(whenContainedInInstancesOf: [vc]).titleHighlightedColor = .lightGray
MUButton.appearance(whenContainedInInstancesOf: [vc]).verticalPadding = 4.0
MUButton.appearance(whenContainedInInstancesOf: [vc]).horizontalPadding = 20.0
}
}
}