├── MemeMaker
├── Assets.xcassets
│ ├── Contents.json
│ ├── scarlett.imageset
│ │ ├── scarlett.png
│ │ └── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Preview Content
│ └── Preview Assets.xcassets
│ │ └── Contents.json
├── AppDelegate.swift
├── Base.lproj
│ └── LaunchScreen.storyboard
├── OverlayMeme.swift
├── ExampleList.swift
├── TextGoneWild.swift
├── NestedZStacks.swift
├── Info.plist
└── SceneDelegate.swift
├── MemeMaker.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
└── project.pbxproj
└── README.md
/MemeMaker/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/MemeMaker/Preview Content/Preview Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/MemeMaker/Assets.xcassets/scarlett.imageset/scarlett.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dempseyatgithub/MemeMaker/HEAD/MemeMaker/Assets.xcassets/scarlett.imageset/scarlett.png
--------------------------------------------------------------------------------
/MemeMaker.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/MemeMaker/Assets.xcassets/scarlett.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "scarlett.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "version" : 1,
19 | "author" : "xcode"
20 | }
21 | }
--------------------------------------------------------------------------------
/MemeMaker/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // MemeMaker
4 | //
5 | // Created by James Dempsey on 6/11/19.
6 | //
7 |
8 | import UIKit
9 |
10 | @UIApplicationMain
11 | class AppDelegate: UIResponder, UIApplicationDelegate {
12 |
13 |
14 |
15 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
16 | // Override point for customization after application launch.
17 | return true
18 | }
19 |
20 | func applicationWillTerminate(_ application: UIApplication) {
21 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
22 | }
23 |
24 | // MARK: UISceneSession Lifecycle
25 |
26 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
27 | // Called when a new scene session is being created.
28 | // Use this method to select a configuration to create the new scene with.
29 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
30 | }
31 |
32 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) {
33 | // Called when the user discards a scene session.
34 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
35 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
36 | }
37 |
38 |
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/MemeMaker/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/MemeMaker/OverlayMeme.swift:
--------------------------------------------------------------------------------
1 | //
2 | // OverlayMeme.swift
3 | // MemeMaker
4 | //
5 | // Created by James Dempsey on 6/12/19.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct OverlayMeme : View {
11 | private let fontName = "HelveticaNeue-CondensedBlack"
12 |
13 | var body: some View {
14 | Image("scarlett")
15 | .overlay(overlay)
16 | }
17 |
18 | var overlay: some View {
19 | VStack() {
20 |
21 | Text("AS GOD IS MY WITNESS")
22 | .font(Font.custom(fontName, size: 41))
23 | .color(.white)
24 | .padding()
25 | .shadow(color: Color(white: 0.0, opacity: 0.8), radius: 2.0)
26 |
27 | Spacer()
28 |
29 | // Text is of different sizes, so stacking three Text views instead of using a single paragraph with line breaks
30 | VStack {
31 | Text("I'LL NEVER TYPE")
32 | .font(Font.custom(fontName, size: 42))
33 | .color(.white)
34 | .shadow(color: Color(white: 0.0, opacity: 0.8), radius: 2.0)
35 |
36 | Text("translatesAutoresizingMaskIntoConstraints")
37 | .font(Font.custom(fontName, size: 22))
38 | .color(.white)
39 | .shadow(color: Color(white: 0.0, opacity: 0.8), radius: 2.0)
40 |
41 | Text("AGAIN")
42 | .font(Font.custom(fontName, size: 42))
43 | .color(.white)
44 | .shadow(color: Color(white: 0.0, opacity: 0.8), radius: 2.0)
45 |
46 | }.padding()
47 | }
48 | }
49 | }
50 |
51 | #if DEBUG
52 | struct OverlayMeme_Previews : PreviewProvider {
53 | static var previews: some View {
54 | OverlayMeme()
55 | }
56 | }
57 | #endif
58 |
--------------------------------------------------------------------------------
/MemeMaker/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/MemeMaker/ExampleList.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ExampleList.swift
3 | // MemeMaker
4 | //
5 | // Created by James Dempsey on 6/12/19.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct ExampleList: View {
11 | var body: some View {
12 | NavigationView {
13 | List {
14 | ExampleRow(
15 | title: "Overlay Modifier",
16 | subtitle: "So far the cleanest example yet",
17 | exampleView: OverlayMeme()
18 | .navigationBarTitle(Text("Overlay Modifier"), displayMode: .inline)
19 | )
20 |
21 | ExampleRow(
22 | title: "Nested ZStacks",
23 | subtitle: "The original example",
24 | exampleView: NestedZStacks()
25 | .navigationBarTitle(Text("Nested ZStacks"), displayMode: .inline)
26 | )
27 |
28 | ExampleRow(
29 | title: "Text Gone Wild",
30 | subtitle: "An example of not getting the desired layout",
31 | exampleView: TextGoneWild()
32 | .navigationBarTitle(Text("Text Gone Wild"), displayMode: .inline
33 | )
34 | )
35 |
36 | }
37 | .navigationBarTitle(Text("Meme Examples"))
38 | }
39 | }
40 | }
41 |
42 |
43 | struct ExampleRow: View {
44 | var title: String
45 | var subtitle: String
46 | var exampleView: T
47 |
48 | var body: some View {
49 | NavigationButton(destination: exampleView) {
50 | VStack(alignment: .leading) {
51 | Text(title)
52 | .font(.headline)
53 |
54 | Text(subtitle)
55 | .font(.subheadline)
56 | }
57 | }
58 | }
59 | }
60 |
61 | #if DEBUG
62 | struct ExampleList_Previews: PreviewProvider {
63 | static var previews: some View {
64 | ExampleList()
65 | }
66 | }
67 | #endif
68 |
--------------------------------------------------------------------------------
/MemeMaker/TextGoneWild.swift:
--------------------------------------------------------------------------------
1 | //
2 | // TextGoneWild.swift
3 | // MemeMaker
4 | //
5 | // Created by James Dempsey on 6/12/19.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct TextGoneWild : View {
11 | private let fontName = "HelveticaNeue-CondensedBlack"
12 |
13 |
14 | var body: some View {
15 | ZStack() {
16 | Image("scarlett")
17 | VStack() {
18 | VStack() {
19 | // Put the image and text in a ZStack, align text to the top
20 | Text("AS GOD IS MY WITNESS")
21 | .font(Font.custom(fontName, size: 41))
22 | .color(.white)
23 | .padding()
24 | .shadow(color: Color(white: 0.0, opacity: 0.8), radius: 2.0)
25 | }
26 | Spacer()
27 | // Text is of different sizes, so stacking three Text views instead of using a single paragraph with line breaks
28 | VStack {
29 | Text("I'LL NEVER TYPE")
30 | .font(Font.custom(fontName, size: 42))
31 | .color(.white)
32 | .shadow(color: Color(white: 0.0, opacity: 0.8), radius: 2.0)
33 |
34 | Text("translatesAutoresizingMaskIntoConstraints")
35 | .font(Font.custom(fontName, size: 22))
36 | .color(.white)
37 | .shadow(color: Color(white: 0.0, opacity: 0.8), radius: 2.0)
38 |
39 | Text("AGAIN")
40 | .font(Font.custom(fontName, size: 42))
41 | .color(.white)
42 | .shadow(color: Color(white: 0.0, opacity: 0.8), radius: 2.0)
43 |
44 | }.padding()
45 | }
46 | }
47 | }
48 | }
49 |
50 | #if DEBUG
51 | struct TextGoneWild_Previews : PreviewProvider {
52 | static var previews: some View {
53 | TextGoneWild()
54 | }
55 | }
56 | #endif
57 |
--------------------------------------------------------------------------------
/MemeMaker/NestedZStacks.swift:
--------------------------------------------------------------------------------
1 | //
2 | // NestedZStacks.swift
3 | // MemeMaker
4 | //
5 | // Created by James Dempsey on 6/11/19.
6 | //
7 |
8 | import SwiftUI
9 |
10 | struct NestedZStacks : View {
11 | private let fontName = "HelveticaNeue-CondensedBlack"
12 |
13 | // Is nesting ZStacks the best way to do this? I have no idea.
14 | // If you figure out a cleaner way feel free to Tweet or Micro.blog me at @jamesdempsey
15 | var body: some View {
16 |
17 |
18 | // Put inner ZStack and bottom VStack of text in ZStack, align text to the bottom
19 | ZStack(alignment: .bottom) {
20 |
21 | // Put the image and text in a ZStack, align text to the top
22 | ZStack(alignment: .top) {
23 |
24 | Image("scarlett")
25 |
26 | Text("AS GOD IS MY WITNESS")
27 | .font(Font.custom(fontName, size: 41))
28 | .color(.white)
29 | .padding()
30 | }
31 |
32 | // Text is of different sizes, so stacking three Text views instead of using a single paragraph with line breaks
33 | VStack {
34 | Text("I'LL NEVER TYPE")
35 | .font(Font.custom(fontName, size: 42))
36 | .color(.white)
37 | .shadow(color: Color(white: 0.0, opacity: 0.8), radius: 2.0)
38 |
39 | Text("translatesAutoresizingMaskIntoConstraints")
40 | .font(Font.custom(fontName, size: 22))
41 | .color(.white)
42 | .shadow(color: Color(white: 0.0, opacity: 0.8), radius: 2.0)
43 |
44 | Text("AGAIN")
45 | .font(Font.custom(fontName, size: 42))
46 | .color(.white)
47 |
48 | }.padding()
49 | }
50 | }
51 |
52 |
53 |
54 |
55 | }
56 |
57 |
58 | #if DEBUG
59 | struct NestedZStacks_Previews : PreviewProvider {
60 | static var previews: some View {
61 | NestedZStacks()
62 | }
63 | }
64 | #endif
65 |
--------------------------------------------------------------------------------
/MemeMaker/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE)
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 | LSRequiresIPhoneOS
22 |
23 | UIApplicationSceneManifest
24 |
25 | UIApplicationSupportsMultipleScenes
26 |
27 | UISceneConfigurations
28 |
29 | UIWindowSceneSessionRoleApplication
30 |
31 |
32 | UILaunchStoryboardName
33 | LaunchScreen
34 | UISceneConfigurationName
35 | Default Configuration
36 | UISceneDelegateClassName
37 | $(PRODUCT_MODULE_NAME).SceneDelegate
38 |
39 |
40 |
41 |
42 | UILaunchStoryboardName
43 | LaunchScreen
44 | UIRequiredDeviceCapabilities
45 |
46 | armv7
47 |
48 | UISupportedInterfaceOrientations
49 |
50 | UIInterfaceOrientationPortrait
51 | UIInterfaceOrientationLandscapeLeft
52 | UIInterfaceOrientationLandscapeRight
53 |
54 | UISupportedInterfaceOrientations~ipad
55 |
56 | UIInterfaceOrientationPortrait
57 | UIInterfaceOrientationPortraitUpsideDown
58 | UIInterfaceOrientationLandscapeLeft
59 | UIInterfaceOrientationLandscapeRight
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | MemeMaker
2 | =================================
3 |
4 | MemeMaker is a little app using SwiftUI that shows a few things:
5 |
6 | - Main list uses a generic type constrained to View to pass destination view into row
7 |
8 | Now has three examples:
9 |
10 | Overlay
11 | - Uses the overlay modifier to overlay the text on top of the image. Probably the cleanest solution.
12 |
13 | ZStacks
14 | - The original example using nested zstacks to pin text to top and bottom of image
15 |
16 | Text Gone Wild
17 | - What happens when the text is allowed to spread out as far as it can
18 | - Shadow is added to all text in this example so it can be seen
19 |
20 | All Example Memes also show
21 | - Using a named font instead of one of the semantic font styles
22 | - Adding a shadow to Text and creating a non-named color
23 |
24 | It was also used to create this meme, which I found amusing:
25 | https://twitter.com/jamesdempsey/status/1138491138740895744
26 |
27 |
28 | ### Notes ###
29 |
30 | This is a not-particularly-functional app created by someone on their first day of using a new technology.
31 | - You can’t edit the text except by editing the code
32 | - You can't different image unless add other images to the project.
33 | - You can’t export or share the meme.
34 |
35 | The app composes some text over an image in a few different ways and then you can take a screenshot of the result to share if you want to.
36 |
37 |
38 | ### Caveats ###
39 |
40 | The image is too wide for the screen, so the ends are clipped.
41 |
42 | There should be a more elegant way to pin text at the top and bottom of the image than using two ZStacks.
43 | UPDATE: There is! Check out the Overlay example in the app.
44 |
45 | Clearly, I need to learn more about having views size themselves in SwiftUI.
46 |
47 | I also need to brush up on my generics and protocols. I know I need the type-erased AnyView type to keep from hardcoding destination views in the row view, but I couldn't explain to you very clearly why.
48 | UPDATE: In fact, I should really only be using AnyView as a last resort. Based on that feedback from Matt Ricketson ([@ricketson_](https://twitter.com/@ricketson_)), I've updated to use generics.
49 |
50 | So, I'm putting this out there as a starting point if you want to check it out or play with it. Feel free to download or fork it and play with it on your own. If you discover better techniques for any of it, I'd love it if you'd let me know. I'm @jamesdempsey at [Micro.blog](https://micro.blog/jamesdempsey) and [Twitter](https://twitter.com/jamesdempsey).
51 |
52 | You can read more about my initial experiences with SwiftUI at [jamesdempsey.net](https://jamesdempsey.net).
53 |
--------------------------------------------------------------------------------
/MemeMaker/SceneDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SceneDelegate.swift
3 | // MemeMaker
4 | //
5 | // Created by James Dempsey on 6/11/19.
6 | //
7 |
8 | import UIKit
9 | import SwiftUI
10 |
11 | class SceneDelegate: UIResponder, UIWindowSceneDelegate {
12 |
13 | var window: UIWindow?
14 |
15 |
16 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
17 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
18 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
19 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
20 |
21 | // Use a UIHostingController as window root view controller
22 | let window = UIWindow(frame: UIScreen.main.bounds)
23 | window.rootViewController = UIHostingController(rootView: ExampleList())
24 | self.window = window
25 | window.makeKeyAndVisible()
26 | }
27 |
28 | func sceneDidDisconnect(_ scene: UIScene) {
29 | // Called as the scene is being released by the system.
30 | // This occurs shortly after the scene enters the background, or when its session is discarded.
31 | // Release any resources associated with this scene that can be re-created the next time the scene connects.
32 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
33 | }
34 |
35 | func sceneDidBecomeActive(_ scene: UIScene) {
36 | // Called when the scene has moved from an inactive state to an active state.
37 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
38 | }
39 |
40 | func sceneWillResignActive(_ scene: UIScene) {
41 | // Called when the scene will move from an active state to an inactive state.
42 | // This may occur due to temporary interruptions (ex. an incoming phone call).
43 | }
44 |
45 | func sceneWillEnterForeground(_ scene: UIScene) {
46 | // Called as the scene transitions from the background to the foreground.
47 | // Use this method to undo the changes made on entering the background.
48 | }
49 |
50 | func sceneDidEnterBackground(_ scene: UIScene) {
51 | // Called as the scene transitions from the foreground to the background.
52 | // Use this method to save data, release shared resources, and store enough scene-specific state information
53 | // to restore the scene back to its current state.
54 | }
55 |
56 |
57 | }
58 |
59 |
--------------------------------------------------------------------------------
/MemeMaker.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 5364C25422B12A1D006094C3 /* ExampleList.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5364C25322B12A1D006094C3 /* ExampleList.swift */; };
11 | 5364C25622B12ED9006094C3 /* OverlayMeme.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5364C25522B12ED9006094C3 /* OverlayMeme.swift */; };
12 | 5364C25A22B1321B006094C3 /* TextGoneWild.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5364C25922B1321B006094C3 /* TextGoneWild.swift */; };
13 | 53B2DF9D22B02D3A00E93C96 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53B2DF9C22B02D3A00E93C96 /* AppDelegate.swift */; };
14 | 53B2DF9F22B02D3A00E93C96 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53B2DF9E22B02D3A00E93C96 /* SceneDelegate.swift */; };
15 | 53B2DFA122B02D3A00E93C96 /* NestedZStacks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53B2DFA022B02D3A00E93C96 /* NestedZStacks.swift */; };
16 | 53B2DFA322B02D3D00E93C96 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 53B2DFA222B02D3D00E93C96 /* Assets.xcassets */; };
17 | 53B2DFA622B02D3D00E93C96 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 53B2DFA522B02D3D00E93C96 /* Preview Assets.xcassets */; };
18 | 53B2DFA922B02D3D00E93C96 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 53B2DFA722B02D3D00E93C96 /* LaunchScreen.storyboard */; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXFileReference section */
22 | 5364C25322B12A1D006094C3 /* ExampleList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExampleList.swift; sourceTree = ""; };
23 | 5364C25522B12ED9006094C3 /* OverlayMeme.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OverlayMeme.swift; sourceTree = ""; };
24 | 5364C25922B1321B006094C3 /* TextGoneWild.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextGoneWild.swift; sourceTree = ""; };
25 | 53B2DF9922B02D3A00E93C96 /* MemeMaker.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MemeMaker.app; sourceTree = BUILT_PRODUCTS_DIR; };
26 | 53B2DF9C22B02D3A00E93C96 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
27 | 53B2DF9E22B02D3A00E93C96 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; };
28 | 53B2DFA022B02D3A00E93C96 /* NestedZStacks.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NestedZStacks.swift; sourceTree = ""; };
29 | 53B2DFA222B02D3D00E93C96 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
30 | 53B2DFA522B02D3D00E93C96 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; };
31 | 53B2DFA822B02D3D00E93C96 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
32 | 53B2DFAA22B02D3D00E93C96 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
33 | 53B2DFB022B04A4000E93C96 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = SOURCE_ROOT; };
34 | /* End PBXFileReference section */
35 |
36 | /* Begin PBXFrameworksBuildPhase section */
37 | 53B2DF9622B02D3A00E93C96 /* Frameworks */ = {
38 | isa = PBXFrameworksBuildPhase;
39 | buildActionMask = 2147483647;
40 | files = (
41 | );
42 | runOnlyForDeploymentPostprocessing = 0;
43 | };
44 | /* End PBXFrameworksBuildPhase section */
45 |
46 | /* Begin PBXGroup section */
47 | 53B2DF9022B02D3A00E93C96 = {
48 | isa = PBXGroup;
49 | children = (
50 | 53B2DF9B22B02D3A00E93C96 /* MemeMaker */,
51 | 53B2DF9A22B02D3A00E93C96 /* Products */,
52 | 53B2DFB022B04A4000E93C96 /* README.md */,
53 | );
54 | sourceTree = "";
55 | };
56 | 53B2DF9A22B02D3A00E93C96 /* Products */ = {
57 | isa = PBXGroup;
58 | children = (
59 | 53B2DF9922B02D3A00E93C96 /* MemeMaker.app */,
60 | );
61 | name = Products;
62 | sourceTree = "";
63 | };
64 | 53B2DF9B22B02D3A00E93C96 /* MemeMaker */ = {
65 | isa = PBXGroup;
66 | children = (
67 | 53B2DF9C22B02D3A00E93C96 /* AppDelegate.swift */,
68 | 53B2DF9E22B02D3A00E93C96 /* SceneDelegate.swift */,
69 | 5364C25322B12A1D006094C3 /* ExampleList.swift */,
70 | 53B2DFA022B02D3A00E93C96 /* NestedZStacks.swift */,
71 | 5364C25522B12ED9006094C3 /* OverlayMeme.swift */,
72 | 5364C25922B1321B006094C3 /* TextGoneWild.swift */,
73 | 53B2DFA222B02D3D00E93C96 /* Assets.xcassets */,
74 | 53B2DFA722B02D3D00E93C96 /* LaunchScreen.storyboard */,
75 | 53B2DFAA22B02D3D00E93C96 /* Info.plist */,
76 | 53B2DFA422B02D3D00E93C96 /* Preview Content */,
77 | );
78 | path = MemeMaker;
79 | sourceTree = "";
80 | };
81 | 53B2DFA422B02D3D00E93C96 /* Preview Content */ = {
82 | isa = PBXGroup;
83 | children = (
84 | 53B2DFA522B02D3D00E93C96 /* Preview Assets.xcassets */,
85 | );
86 | path = "Preview Content";
87 | sourceTree = "";
88 | };
89 | /* End PBXGroup section */
90 |
91 | /* Begin PBXNativeTarget section */
92 | 53B2DF9822B02D3A00E93C96 /* MemeMaker */ = {
93 | isa = PBXNativeTarget;
94 | buildConfigurationList = 53B2DFAD22B02D3D00E93C96 /* Build configuration list for PBXNativeTarget "MemeMaker" */;
95 | buildPhases = (
96 | 53B2DF9522B02D3A00E93C96 /* Sources */,
97 | 53B2DF9622B02D3A00E93C96 /* Frameworks */,
98 | 53B2DF9722B02D3A00E93C96 /* Resources */,
99 | );
100 | buildRules = (
101 | );
102 | dependencies = (
103 | );
104 | name = MemeMaker;
105 | productName = MemeMaker;
106 | productReference = 53B2DF9922B02D3A00E93C96 /* MemeMaker.app */;
107 | productType = "com.apple.product-type.application";
108 | };
109 | /* End PBXNativeTarget section */
110 |
111 | /* Begin PBXProject section */
112 | 53B2DF9122B02D3A00E93C96 /* Project object */ = {
113 | isa = PBXProject;
114 | attributes = {
115 | LastSwiftUpdateCheck = 1100;
116 | LastUpgradeCheck = 1100;
117 | TargetAttributes = {
118 | 53B2DF9822B02D3A00E93C96 = {
119 | CreatedOnToolsVersion = 11.0;
120 | };
121 | };
122 | };
123 | buildConfigurationList = 53B2DF9422B02D3A00E93C96 /* Build configuration list for PBXProject "MemeMaker" */;
124 | compatibilityVersion = "Xcode 9.3";
125 | developmentRegion = en;
126 | hasScannedForEncodings = 0;
127 | knownRegions = (
128 | en,
129 | Base,
130 | );
131 | mainGroup = 53B2DF9022B02D3A00E93C96;
132 | productRefGroup = 53B2DF9A22B02D3A00E93C96 /* Products */;
133 | projectDirPath = "";
134 | projectRoot = "";
135 | targets = (
136 | 53B2DF9822B02D3A00E93C96 /* MemeMaker */,
137 | );
138 | };
139 | /* End PBXProject section */
140 |
141 | /* Begin PBXResourcesBuildPhase section */
142 | 53B2DF9722B02D3A00E93C96 /* Resources */ = {
143 | isa = PBXResourcesBuildPhase;
144 | buildActionMask = 2147483647;
145 | files = (
146 | 53B2DFA922B02D3D00E93C96 /* LaunchScreen.storyboard in Resources */,
147 | 53B2DFA622B02D3D00E93C96 /* Preview Assets.xcassets in Resources */,
148 | 53B2DFA322B02D3D00E93C96 /* Assets.xcassets in Resources */,
149 | );
150 | runOnlyForDeploymentPostprocessing = 0;
151 | };
152 | /* End PBXResourcesBuildPhase section */
153 |
154 | /* Begin PBXSourcesBuildPhase section */
155 | 53B2DF9522B02D3A00E93C96 /* Sources */ = {
156 | isa = PBXSourcesBuildPhase;
157 | buildActionMask = 2147483647;
158 | files = (
159 | 5364C25422B12A1D006094C3 /* ExampleList.swift in Sources */,
160 | 53B2DF9D22B02D3A00E93C96 /* AppDelegate.swift in Sources */,
161 | 5364C25622B12ED9006094C3 /* OverlayMeme.swift in Sources */,
162 | 53B2DF9F22B02D3A00E93C96 /* SceneDelegate.swift in Sources */,
163 | 53B2DFA122B02D3A00E93C96 /* NestedZStacks.swift in Sources */,
164 | 5364C25A22B1321B006094C3 /* TextGoneWild.swift in Sources */,
165 | );
166 | runOnlyForDeploymentPostprocessing = 0;
167 | };
168 | /* End PBXSourcesBuildPhase section */
169 |
170 | /* Begin PBXVariantGroup section */
171 | 53B2DFA722B02D3D00E93C96 /* LaunchScreen.storyboard */ = {
172 | isa = PBXVariantGroup;
173 | children = (
174 | 53B2DFA822B02D3D00E93C96 /* Base */,
175 | );
176 | name = LaunchScreen.storyboard;
177 | sourceTree = "";
178 | };
179 | /* End PBXVariantGroup section */
180 |
181 | /* Begin XCBuildConfiguration section */
182 | 53B2DFAB22B02D3D00E93C96 /* Debug */ = {
183 | isa = XCBuildConfiguration;
184 | buildSettings = {
185 | ALWAYS_SEARCH_USER_PATHS = NO;
186 | CLANG_ANALYZER_NONNULL = YES;
187 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
188 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
189 | CLANG_CXX_LIBRARY = "libc++";
190 | CLANG_ENABLE_MODULES = YES;
191 | CLANG_ENABLE_OBJC_ARC = YES;
192 | CLANG_ENABLE_OBJC_WEAK = YES;
193 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
194 | CLANG_WARN_BOOL_CONVERSION = YES;
195 | CLANG_WARN_COMMA = YES;
196 | CLANG_WARN_CONSTANT_CONVERSION = YES;
197 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
198 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
199 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
200 | CLANG_WARN_EMPTY_BODY = YES;
201 | CLANG_WARN_ENUM_CONVERSION = YES;
202 | CLANG_WARN_INFINITE_RECURSION = YES;
203 | CLANG_WARN_INT_CONVERSION = YES;
204 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
205 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
206 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
207 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
208 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
209 | CLANG_WARN_STRICT_PROTOTYPES = YES;
210 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
211 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
212 | CLANG_WARN_UNREACHABLE_CODE = YES;
213 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
214 | COPY_PHASE_STRIP = NO;
215 | DEBUG_INFORMATION_FORMAT = dwarf;
216 | ENABLE_STRICT_OBJC_MSGSEND = YES;
217 | ENABLE_TESTABILITY = YES;
218 | GCC_C_LANGUAGE_STANDARD = gnu11;
219 | GCC_DYNAMIC_NO_PIC = NO;
220 | GCC_NO_COMMON_BLOCKS = YES;
221 | GCC_OPTIMIZATION_LEVEL = 0;
222 | GCC_PREPROCESSOR_DEFINITIONS = (
223 | "DEBUG=1",
224 | "$(inherited)",
225 | );
226 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
227 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
228 | GCC_WARN_UNDECLARED_SELECTOR = YES;
229 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
230 | GCC_WARN_UNUSED_FUNCTION = YES;
231 | GCC_WARN_UNUSED_VARIABLE = YES;
232 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
233 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
234 | MTL_FAST_MATH = YES;
235 | ONLY_ACTIVE_ARCH = YES;
236 | SDKROOT = iphoneos;
237 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
238 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
239 | };
240 | name = Debug;
241 | };
242 | 53B2DFAC22B02D3D00E93C96 /* Release */ = {
243 | isa = XCBuildConfiguration;
244 | buildSettings = {
245 | ALWAYS_SEARCH_USER_PATHS = NO;
246 | CLANG_ANALYZER_NONNULL = YES;
247 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
248 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
249 | CLANG_CXX_LIBRARY = "libc++";
250 | CLANG_ENABLE_MODULES = YES;
251 | CLANG_ENABLE_OBJC_ARC = YES;
252 | CLANG_ENABLE_OBJC_WEAK = YES;
253 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
254 | CLANG_WARN_BOOL_CONVERSION = YES;
255 | CLANG_WARN_COMMA = YES;
256 | CLANG_WARN_CONSTANT_CONVERSION = YES;
257 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
258 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
259 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
260 | CLANG_WARN_EMPTY_BODY = YES;
261 | CLANG_WARN_ENUM_CONVERSION = YES;
262 | CLANG_WARN_INFINITE_RECURSION = YES;
263 | CLANG_WARN_INT_CONVERSION = YES;
264 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
265 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
266 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
267 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
268 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
269 | CLANG_WARN_STRICT_PROTOTYPES = YES;
270 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
271 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
272 | CLANG_WARN_UNREACHABLE_CODE = YES;
273 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
274 | COPY_PHASE_STRIP = NO;
275 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
276 | ENABLE_NS_ASSERTIONS = NO;
277 | ENABLE_STRICT_OBJC_MSGSEND = YES;
278 | GCC_C_LANGUAGE_STANDARD = gnu11;
279 | GCC_NO_COMMON_BLOCKS = YES;
280 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
281 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
282 | GCC_WARN_UNDECLARED_SELECTOR = YES;
283 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
284 | GCC_WARN_UNUSED_FUNCTION = YES;
285 | GCC_WARN_UNUSED_VARIABLE = YES;
286 | IPHONEOS_DEPLOYMENT_TARGET = 13.0;
287 | MTL_ENABLE_DEBUG_INFO = NO;
288 | MTL_FAST_MATH = YES;
289 | SDKROOT = iphoneos;
290 | SWIFT_COMPILATION_MODE = wholemodule;
291 | SWIFT_OPTIMIZATION_LEVEL = "-O";
292 | VALIDATE_PRODUCT = YES;
293 | };
294 | name = Release;
295 | };
296 | 53B2DFAE22B02D3D00E93C96 /* Debug */ = {
297 | isa = XCBuildConfiguration;
298 | buildSettings = {
299 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
300 | CODE_SIGN_STYLE = Automatic;
301 | DEVELOPMENT_ASSET_PATHS = "MemeMaker/Preview\\ Content";
302 | ENABLE_PREVIEWS = YES;
303 | INFOPLIST_FILE = MemeMaker/Info.plist;
304 | LD_RUNPATH_SEARCH_PATHS = (
305 | "$(inherited)",
306 | "@executable_path/Frameworks",
307 | );
308 | PRODUCT_BUNDLE_IDENTIFIER = com.example.MemeMaker;
309 | PRODUCT_NAME = "$(TARGET_NAME)";
310 | SWIFT_VERSION = 5.0;
311 | TARGETED_DEVICE_FAMILY = "1,2";
312 | };
313 | name = Debug;
314 | };
315 | 53B2DFAF22B02D3D00E93C96 /* Release */ = {
316 | isa = XCBuildConfiguration;
317 | buildSettings = {
318 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
319 | CODE_SIGN_STYLE = Automatic;
320 | DEVELOPMENT_ASSET_PATHS = "MemeMaker/Preview\\ Content";
321 | ENABLE_PREVIEWS = YES;
322 | INFOPLIST_FILE = MemeMaker/Info.plist;
323 | LD_RUNPATH_SEARCH_PATHS = (
324 | "$(inherited)",
325 | "@executable_path/Frameworks",
326 | );
327 | PRODUCT_BUNDLE_IDENTIFIER = com.example.MemeMaker;
328 | PRODUCT_NAME = "$(TARGET_NAME)";
329 | SWIFT_VERSION = 5.0;
330 | TARGETED_DEVICE_FAMILY = "1,2";
331 | };
332 | name = Release;
333 | };
334 | /* End XCBuildConfiguration section */
335 |
336 | /* Begin XCConfigurationList section */
337 | 53B2DF9422B02D3A00E93C96 /* Build configuration list for PBXProject "MemeMaker" */ = {
338 | isa = XCConfigurationList;
339 | buildConfigurations = (
340 | 53B2DFAB22B02D3D00E93C96 /* Debug */,
341 | 53B2DFAC22B02D3D00E93C96 /* Release */,
342 | );
343 | defaultConfigurationIsVisible = 0;
344 | defaultConfigurationName = Release;
345 | };
346 | 53B2DFAD22B02D3D00E93C96 /* Build configuration list for PBXNativeTarget "MemeMaker" */ = {
347 | isa = XCConfigurationList;
348 | buildConfigurations = (
349 | 53B2DFAE22B02D3D00E93C96 /* Debug */,
350 | 53B2DFAF22B02D3D00E93C96 /* Release */,
351 | );
352 | defaultConfigurationIsVisible = 0;
353 | defaultConfigurationName = Release;
354 | };
355 | /* End XCConfigurationList section */
356 | };
357 | rootObject = 53B2DF9122B02D3A00E93C96 /* Project object */;
358 | }
359 |
--------------------------------------------------------------------------------