Skip to content

Commit

Permalink
Merge pull request #16 from swing-park/dev/iOS
Browse files Browse the repository at this point in the history
[Team10 - 쑤, Zeke] Issue, Label, Milestone View 구현
  • Loading branch information
ehgud0670 authored Jun 17, 2021
2 parents 6aa4478 + 3af47e8 commit f99d1a7
Show file tree
Hide file tree
Showing 69 changed files with 4,335 additions and 0 deletions.
122 changes: 122 additions & 0 deletions iOS/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
```
# Created by https://www.gitignore.io/api/xcode,swift,cocoapods
# Edit at https://www.gitignore.io/?templates=xcode,swift,cocoapods

### CocoaPods ###
## CocoaPods GitIgnore Template

# CocoaPods - Only use to conserve bandwidth / Save time on Pushing
# - Also handy if you have a large number of dependant pods
# - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGNORE THE LOCK FILE
Pods/

### Swift ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
.build/
# Add this line if you want to avoid checking in Xcode SPM integration.
# .swiftpm/xcode

# CocoaPods
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
# Pods/
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# Accio dependency management
Dependencies/
.accio/

### SwiftPackageManager ###
Packages
.build/
xcuserdata
DerivedData/
# *.xcodeproj

# fastlane
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

### Xcode ###
# Xcode
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)

## Xcode Patch
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno

### Xcode Patch ###
**/xcshareddata/WorkspaceSettings.xcsettings

# End of https://www.gitignore.io/api/xcode,swift,cocoapods
*.DS_Store

```
45 changes: 45 additions & 0 deletions iOS/issue-tracker/LabelsCollectionViewCell.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//
// LabelsCollectionViewCell.swift
// issue-tracker
//
// Created by 양준혁 on 2021/06/13.
//

import UIKit
import SnapKit

class LabelsCollectionViewCell: UICollectionViewCell {
static var identifiers = "LabelsCollectionViewCell"

let label: PaddingLabel = {
var label = PaddingLabel(withInsets: 0, 0, 10, 10)
label.textAlignment = .center
label.textColor = .white
label.layer.masksToBounds = true
label.layer.cornerRadius = 15
return label
}()

override init(frame: CGRect) {
super.init(frame: frame)
addSubview(label)
setupAutolayout()
}

required init?(coder: NSCoder) {
super.init(coder: coder)
addSubview(label)
setupAutolayout()
}

func setupAutolayout() {
label.snp.makeConstraints { label in
label.edges.equalToSuperview()
}
}

func configure(title: String, color: String) {
label.text = title
label.backgroundColor = UIColor.hexStringToUIColor(hex: color)
}
}
20 changes: 20 additions & 0 deletions iOS/issue-tracker/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'issue-tracker' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'SwiftLint'

# Pods for issue-tracker

target 'issue-trackerTests' do
inherit! :search_paths
# Pods for testing
end

target 'issue-trackerUITests' do
# Pods for testing
end

end
16 changes: 16 additions & 0 deletions iOS/issue-tracker/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PODS:
- SwiftLint (0.43.1)

DEPENDENCIES:
- SwiftLint

SPEC REPOS:
trunk:
- SwiftLint

SPEC CHECKSUMS:
SwiftLint: 99f82d07b837b942dd563c668de129a03fc3fb52

PODFILE CHECKSUM: d93da15071a83784721d7d111568e7103ab0017e

COCOAPODS: 1.10.1
Loading

0 comments on commit f99d1a7

Please sign in to comment.