Skip to content

Commit

Permalink
[CAT-192] 홈 기본 UI 구성 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
devMinseok authored Aug 16, 2024
1 parent fb3032d commit 2913a90
Show file tree
Hide file tree
Showing 69 changed files with 1,186 additions and 261 deletions.
Binary file modified DependencyGraph/mohanyang_dev_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DependencyGraph/mohanyang_prod_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion Projects/Feature/Feature/Sources/AppCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import SwiftUI

import SplashFeature
import HomeFeature
import HomeFeatureInterface
import OnboardingFeature
import PushService

Expand Down
1 change: 0 additions & 1 deletion Projects/Feature/Feature/Sources/AppView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import SwiftUI

import SplashFeature
import HomeFeature
import HomeFeatureInterface
import OnboardingFeature

import ComposableArchitecture
Expand Down
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<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="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="HomeFeature Example" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zuX-Xj-POK">
<rect key="frame" x="148" y="339" width="118" height="38.5"/>
<fontDescription key="fontDescription" type="system" pointSize="32"/>
<color key="textColor" name="white"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" name="green60"/>
<constraints>
<constraint firstItem="zuX-Xj-POK" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="Dci-bf-BmU"/>
<constraint firstItem="zuX-Xj-POK" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" multiplier="0.8" id="qjt-zk-rv9"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="52.173913043478265" y="375"/>
</scene>
</scenes>
<resources>
<namedColor name="green60">
<color red="0.24699999392032623" green="0.76499998569488525" blue="0.68999999761581421" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="white">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13142" 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="12042"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
<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>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="obG-Y5-kRd">
<rect key="frame" x="0.0" y="626.5" width="375" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="HomeFeature 모듈 데모앱" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
<rect key="frame" x="0.0" y="202" width="375" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="obG-Y5-kRd" secondAttribute="centerX" id="5cz-MP-9tL"/>
<constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
<constraint firstItem="obG-Y5-kRd" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" constant="20" symbolic="YES" id="SfN-ll-jLj"/>
<constraint firstAttribute="bottom" secondItem="obG-Y5-kRd" secondAttribute="bottom" constant="20" id="Y44-ml-fuU"/>
<constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
<constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" constant="20" symbolic="YES" id="x7j-FC-K8j"/>
</constraints>
<viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
</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>
11 changes: 0 additions & 11 deletions Projects/Feature/HomeFeature/Example/Sources/AppDelegate.swift

This file was deleted.

33 changes: 33 additions & 0 deletions Projects/Feature/HomeFeature/Example/Sources/ContentView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// ContentView.swift
// HomeFeature
//
// Created by devMinseok on 8/10/24.
//

import SwiftUI

import HomeFeature

struct ContentView: View {
var body: some View {
NavigationStack {
List {
NavigationLink {
HomeView(
store: .init(
initialState: .init(),
reducer: { HomeCore() }
)
)
} label: {
Text("Home")
}
}
}
}
}

#Preview {
ContentView()
}
17 changes: 17 additions & 0 deletions Projects/Feature/HomeFeature/Example/Sources/HomeFeatureApp.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// HomeFeatureApp.swift
// HomeFeature
//
// Created by <#T##Author name#> on 8/10/24.
//

import SwiftUI

@main
struct HomeFeatureApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// TimeWheelPickerDetailView.swift
// DesignSystemExample
//
// Created by devMinseok on 8/13/24.
// Copyright © 2024 PomoNyang. All rights reserved.
//

import SwiftUI

import HomeFeature

#Preview {
TimeSelectView(
store: .init(
initialState: .init(),
reducer: { TimeSelectCore() }
)
)
}
34 changes: 0 additions & 34 deletions Projects/Feature/HomeFeature/Interface/HomeCoreInterface.swift

This file was deleted.

31 changes: 0 additions & 31 deletions Projects/Feature/HomeFeature/Interface/HomeView.swift

This file was deleted.

3 changes: 1 addition & 2 deletions Projects/Feature/HomeFeature/Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ let project: Project = .makeTMABasedProject(
scripts: [],
targets: [
.sources,
.interface,
.tests,
.testing,
.example
],
dependencies: [
.interface: [
.sources: [
.dependency(rootModule: Domain.self)
]
]
Expand Down
1 change: 0 additions & 1 deletion Projects/Feature/HomeFeature/Resources/dummy.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
//
// CategorySelectCore.swift
// HomeFeature
//
// Created by devMinseok on 8/13/24.
// Copyright © 2024 PomoNyang. All rights reserved.
//

import ComposableArchitecture

@Reducer
public struct CategorySelectCore {
@ObservableState
public struct State: Equatable {

}

public enum Action {
case onAppear
case dismissButtonTapped
case bottomCheckButtonTapped
}

// <#@Dependency() var#>

public init() {}

public var body: some ReducerOf<Self> {
Reduce(self.core)
}

private func core(state: inout State, action: Action) -> EffectOf<Self> {
switch action {
case .onAppear:
return .none

case .dismissButtonTapped:
return .none

case .bottomCheckButtonTapped:
return .none
}
}
}
Loading

0 comments on commit 2913a90

Please sign in to comment.