mirror of
https://github.com/MoveUpwards/Sejima.git
synced 2024-10-05 17:48:58 +03:00
Update project structure
This commit is contained in:
parent
68e51ce041
commit
b5ec4dea98
@ -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 = (
|
||||
|
23
Sample/Sample/Assets.xcassets/Logo.imageset/Contents.json
vendored
Normal file
23
Sample/Sample/Assets.xcassets/Logo.imageset/Contents.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
BIN
Sample/Sample/Assets.xcassets/Logo.imageset/Slice.png
vendored
Normal file
BIN
Sample/Sample/Assets.xcassets/Logo.imageset/Slice.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
BIN
Sample/Sample/Assets.xcassets/Logo.imageset/Slice@2x.png
vendored
Normal file
BIN
Sample/Sample/Assets.xcassets/Logo.imageset/Slice@2x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
Sample/Sample/Assets.xcassets/Logo.imageset/Slice@3x.png
vendored
Normal file
BIN
Sample/Sample/Assets.xcassets/Logo.imageset/Slice@3x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
@ -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>
|
16
Sample/Sample/Helpers/ThemeManager.swift
Normal file
16
Sample/Sample/Helpers/ThemeManager.swift
Normal 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() {
|
||||
|
||||
}
|
||||
}
|
43
Sample/Sample/Storyboards/Base.lproj/LaunchScreen.storyboard
Normal file
43
Sample/Sample/Storyboards/Base.lproj/LaunchScreen.storyboard
Normal 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>
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user