This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Button(action: { | |
// do something | |
}) { | |
HStack { | |
Image("icon") | |
.resizable() | |
.scaledToFit() | |
Text("xxxxxxxxxxxxxxxx") | |
.foregroundColor(Color(red: 0 / 255, green: 123 / 255, blue: 251 / 255)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VStack { | |
Image("icon") | |
.resizable() | |
.scaledToFit() | |
Text("xxxxxxxxxxx") | |
.foregroundColor(Color(red: 0 / 255, green: 123 / 255, blue: 251 / 255)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func usecase1and2(isUsecase1: Bool) { | |
a() | |
b() | |
// usecase1の時のみ実行 | |
if isUsecase1 { | |
c() | |
} | |
d() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Color { | |
static let baseBackground = Color(red: 0 / 255, green: 123 / 255, blue: 251 / 255) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NavigationView { | |
Button(action: { | |
// do something | |
}) { | |
HStack { | |
Image("icon") | |
.resizable() | |
.scaledToFit() | |
Text("xxxxxxxxxxxxxxxx") | |
.foregroundColor(.baseBackground) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VStack { | |
Image("icon") | |
.resizable() | |
.scaledToFit() | |
Text("xxxxxxxxxxx") | |
.foregroundColor(.baseBackground) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
struct Item: Hashable { | |
var title: String = "" | |
var description: String = "" | |
} | |
private let items = [ | |
Item(title: "話したいこと", description: "心身の健康の保ち方\n(ぼっち暮らしでも通用する方法だと嬉しい)"), | |
Item(title: "興味のある技術etc", description: "SwiftUI / ドメイン駆動設計"), | |
Item(title: "住んでいるところ", description: "東京"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Parser from 'rss-parser'; | |
const parser = new Parser(); | |
(async () => { | |
const feed = await parser.parseURL('https://note.com/kamimi01/rss'); | |
console.log(feed.title); | |
feed.items.forEach(item => { | |
console.log(item.title); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rss xmlns:webfeeds="http://webfeeds.org/rss/1.0" xmlns:note="https://note.com" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"> | |
<channel> | |
<title>kamimi01</title> | |
<description>iOS App Developerなんとかやってます。よく使うのは、Swift / TypeScript。 文章を書くことがスキ✍🏻 海が精神安定剤🌊 平穏な生活を大事に❤️ 英語ブログも始めました。https://medium.com/@kamimi01</description> | |
<link>https://note.com/kamimi01</link> | |
<atom:link rel="self" type="application/rss+xml" href="https://note.com/kamimi01/rss/"/> | |
<copyright>kamimi01</copyright> | |
<webfeeds:icon>https://d2l930y2yx77uc.cloudfront.net/assets/default/default_note_logo-100a27d592505c50c29b032c0554570c955f312b8937727c8777fd87b3068c71.png</webfeeds:icon> | |
<webfeeds:logo>https://d2l930y2yx77uc.cloudfront.net/assets/default/default_note_logo-100a27d592505c50c29b032c0554570c955f312b8937727c8777fd87b3068c71.png</webfeeds:logo> | |
<webfeeds:accentColor>249F80</webfeeds:accentColor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Parser from 'rss-parser'; | |
type CustomItem = {description: string}; // 追加 | |
const parser: Parser<CustomItem> = new Parser({ // 修正 | |
customFields: { | |
item: ['description'] | |
} | |
}); |
OlderNewer