Skip to content

Commit

Permalink
[feat] Add Flying Flower
Browse files Browse the repository at this point in the history
  • Loading branch information
littleossa committed Apr 26, 2022
1 parent b7f6e9a commit 2f25515
Show file tree
Hide file tree
Showing 10 changed files with 348 additions and 3 deletions.
57 changes: 57 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.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
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/


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

iOSInjectionProject/
63 changes: 63 additions & 0 deletions SFSymbolsArtCollection.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
97E11D522817381100B2AB32 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97E11D512817381100B2AB32 /* ContentView.swift */; };
97E11D542817381200B2AB32 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97E11D532817381200B2AB32 /* Assets.xcassets */; };
97E11D572817381200B2AB32 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97E11D562817381200B2AB32 /* Preview Assets.xcassets */; };
97E11D5E2817396500B2AB32 /* DrawingSymbol.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97E11D5D2817396500B2AB32 /* DrawingSymbol.swift */; };
97E11DF028176A0D00B2AB32 /* SFUserFriendlySymbols in Frameworks */ = {isa = PBXBuildFile; productRef = 97E11DEF28176A0D00B2AB32 /* SFUserFriendlySymbols */; };
97E11DF528176B8900B2AB32 /* Flower.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97E11DF428176B8900B2AB32 /* Flower.swift */; };
97E11E012817791B00B2AB32 /* FlyingFlower.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97E11E002817791B00B2AB32 /* FlyingFlower.swift */; };
97E11E0328177BE000B2AB32 /* Sky.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97E11E0228177BE000B2AB32 /* Sky.swift */; };
97E11E0528177E7E00B2AB32 /* Fire.swift in Sources */ = {isa = PBXBuildFile; fileRef = 97E11E0428177E7E00B2AB32 /* Fire.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -19,13 +25,19 @@
97E11D512817381100B2AB32 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
97E11D532817381200B2AB32 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97E11D562817381200B2AB32 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
97E11D5D2817396500B2AB32 /* DrawingSymbol.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DrawingSymbol.swift; sourceTree = "<group>"; };
97E11DF428176B8900B2AB32 /* Flower.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Flower.swift; sourceTree = "<group>"; };
97E11E002817791B00B2AB32 /* FlyingFlower.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlyingFlower.swift; sourceTree = "<group>"; };
97E11E0228177BE000B2AB32 /* Sky.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Sky.swift; sourceTree = "<group>"; };
97E11E0428177E7E00B2AB32 /* Fire.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Fire.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
97E11D492817381100B2AB32 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
97E11DF028176A0D00B2AB32 /* SFUserFriendlySymbols in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -53,6 +65,8 @@
children = (
97E11D4F2817381100B2AB32 /* SFSymbolsArtCollectionApp.swift */,
97E11D512817381100B2AB32 /* ContentView.swift */,
97E11DF328176B1900B2AB32 /* FlyingFlower */,
97E11E082817A71300B2AB32 /* Util */,
97E11D532817381200B2AB32 /* Assets.xcassets */,
97E11D552817381200B2AB32 /* Preview Content */,
);
Expand All @@ -67,6 +81,25 @@
path = "Preview Content";
sourceTree = "<group>";
};
97E11DF328176B1900B2AB32 /* FlyingFlower */ = {
isa = PBXGroup;
children = (
97E11E002817791B00B2AB32 /* FlyingFlower.swift */,
97E11DF428176B8900B2AB32 /* Flower.swift */,
97E11E0428177E7E00B2AB32 /* Fire.swift */,
97E11E0228177BE000B2AB32 /* Sky.swift */,
);
path = FlyingFlower;
sourceTree = "<group>";
};
97E11E082817A71300B2AB32 /* Util */ = {
isa = PBXGroup;
children = (
97E11D5D2817396500B2AB32 /* DrawingSymbol.swift */,
);
path = Util;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand All @@ -83,6 +116,9 @@
dependencies = (
);
name = SFSymbolsArtCollection;
packageProductDependencies = (
97E11DEF28176A0D00B2AB32 /* SFUserFriendlySymbols */,
);
productName = SFSymbolsArtCollection;
productReference = 97E11D4C2817381100B2AB32 /* SFSymbolsArtCollection.app */;
productType = "com.apple.product-type.application";
Expand Down Expand Up @@ -111,6 +147,9 @@
Base,
);
mainGroup = 97E11D432817381100B2AB32;
packageReferences = (
97E11DEE28176A0D00B2AB32 /* XCRemoteSwiftPackageReference "SFUserFriendlySymbols" */,
);
productRefGroup = 97E11D4D2817381100B2AB32 /* Products */;
projectDirPath = "";
projectRoot = "";
Expand All @@ -137,8 +176,13 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
97E11D5E2817396500B2AB32 /* DrawingSymbol.swift in Sources */,
97E11D522817381100B2AB32 /* ContentView.swift in Sources */,
97E11DF528176B8900B2AB32 /* Flower.swift in Sources */,
97E11E0528177E7E00B2AB32 /* Fire.swift in Sources */,
97E11D502817381100B2AB32 /* SFSymbolsArtCollectionApp.swift in Sources */,
97E11E012817791B00B2AB32 /* FlyingFlower.swift in Sources */,
97E11E0328177BE000B2AB32 /* Sky.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -339,6 +383,25 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
97E11DEE28176A0D00B2AB32 /* XCRemoteSwiftPackageReference "SFUserFriendlySymbols" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/littleossa/SFUserFriendlySymbols.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 0.4.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
97E11DEF28176A0D00B2AB32 /* SFUserFriendlySymbols */ = {
isa = XCSwiftPackageProductDependency;
package = 97E11DEE28176A0D00B2AB32 /* XCRemoteSwiftPackageReference "SFUserFriendlySymbols" */;
productName = SFUserFriendlySymbols;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 97E11D442817381100B2AB32 /* Project object */;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"pins" : [
{
"identity" : "sfuserfriendlysymbols",
"kind" : "remoteSourceControl",
"location" : "https://github.com/littleossa/SFUserFriendlySymbols.git",
"state" : {
"revision" : "9d003e1c818de1dbe34a36b197ce11d9524a54d9",
"version" : "0.4.0"
}
}
],
"version" : 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
Expand Down
4 changes: 1 addition & 3 deletions SFSymbolsArtCollection/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
// ContentView.swift
// SFSymbolsArtCollection
//
// Created by 平岡修 on 2022/04/26.
//

import SwiftUI

struct ContentView: View {
var body: some View {
Text("Hello, world!")
.padding()
FlyingFlower()
}
}

Expand Down
24 changes: 24 additions & 0 deletions SFSymbolsArtCollection/FlyingFlower/Fire.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// Fire.swift
// SFSymbolsArtCollection
//
// Created by 平岡修 on 2022/04/26.
//

import SwiftUI

struct Fire: View {
var body: some View {
ZStack {
DrawingSymbol(.flameFill, color: .yellow, width: 50, height: 80, flipType: .vertical)

DrawingSymbol(.flame, color: .red, width: 50, height: 80, flipType: .vertical)
}
}
}

struct Fire_Previews: PreviewProvider {
static var previews: some View {
Fire()
}
}
28 changes: 28 additions & 0 deletions SFSymbolsArtCollection/FlyingFlower/Flower.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// Flower.swift
// SFSymbolsArtCollection
//
// Created by 平岡修 on 2022/04/26.
//

import SwiftUI

struct Flower: View {
var body: some View {
ZStack {
DrawingSymbol(.cameraMacro, color: .green, width: 80, height: 100)

DrawingSymbol(.ovalPortraitFill, color: .pink, width: 50, height: 60, offsetY: -30)

DrawingSymbol(.rhombusFill, color: .white, width: 50, height: 60, offsetX: 9, offsetY: -70)

DrawingSymbol(.rhombusFill, color: .white, width: 50, height: 60, offsetX: -9, offsetY: -70)
}
}
}

struct Flower_Previews: PreviewProvider {
static var previews: some View {
Flower()
}
}
31 changes: 31 additions & 0 deletions SFSymbolsArtCollection/FlyingFlower/FlyingFlower.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
//
// FlyingFlower.swift
// SFSymbolsArtCollection
//
// Created by lil Ossa on 2022/04/26.
//

import SwiftUI

struct FlyingFlower: View {
var body: some View {

ZStack {

Sky()

VStack(spacing: 0) {
Flower()
Fire()
}
.rotationEffect(.degrees(-30))
.offset(x: -10, y: 33)
}
}
}

struct TulipGarden_Previews: PreviewProvider {
static var previews: some View {
FlyingFlower()
}
}
36 changes: 36 additions & 0 deletions SFSymbolsArtCollection/FlyingFlower/Sky.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
//
// Sky.swift
// SFSymbolsArtCollection
//
// Created by 平岡修 on 2022/04/26.
//

import SwiftUI

struct Sky: View {
var body: some View {

ZStack {
Image(symbol: .rectangleFill)
.resizable()
.foregroundColor(.blue)

VStack(spacing: 40) {
ForEach(0..<10) { _ in

HStack(spacing: 20) {
ForEach(0..<6) { _ in
DrawingSymbol(.cloudFill, color: .white, width: 100, height: 80)
}
}
}
}
}
}
}

struct Sky_Previews: PreviewProvider {
static var previews: some View {
Sky()
}
}
Loading

0 comments on commit 2f25515

Please sign in to comment.