Skip to content

jacobkosmart/endangered-animals-kr-app

Repository files navigation

🦊 멸종위기동물사전

Download on the App Store

스크린샷

📌 Main Features

  • Show and describe Endangered animals in Korea

  • Support multiplatform design in iPhone, iPad and Mac

  • Advanced motion animation

  • Only dark appearance

  • Create map with annotations in SwiftUI

  • Play video files in SwiftUI

👉 Pod library

Google-Mobile-Ads-SDK - https://cocoapods.org/pods/Google-Mobile-Ads-SDK

설치

pod init

  pod 'Google-Mobile-Ads-SDK'

pod install

🔑 Check Point !

🔷 UI Structure

스크린샷 2022-02-26 오후 3 34 07

스크린샷 2022-02-26 오후 3 34 15

스크린샷 2022-02-26 오후 3 34 22

스크린샷 2022-02-26 오후 3 34 30

🔷 Model

// AnimalModel.swift
struct Animal: Codable, Identifiable {
	let id: String
	let name: String
	let headline: String
	let description: String
	let link: String
	let image: String
	let gallery: [String]
	let fact: [String]
	let copyright: String
}
// CoverImageMode.swift
struct CoverImage: Codable, Identifiable {
	let id: Int
	let name: String
}
// VideoModel.swift
struct Video: Codable, Identifiable {
	let id: String
	let name: String
	let headline: String
	let videoid: String
}
// LocationModel.swift
import MapKit

struct AnimalLocation: Codable, Identifiable {
	var id: String
	var image: String
	var name: String
	var latitude: Double
	var longitude: Double

	// Computed Property
	var location: CLLocationCoordinate2D {
		CLLocationCoordinate2D(latitude: latitude, longitude: longitude)
	}
}

🔷 Check core codes in details


🗃 Reference

Learn how to create a grid layout with SwiftUI 2 in credo - https://credo.academy/swiftui-app-07.html

멸종위기 야생생물 포털 - https://www.nie.re.kr/endangered_species/home/enspc/enspc02001i.do#spclist

About

To show and describe Endangered animals in Korea

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published