Skip to content

Instantly share code, notes, and snippets.

View vulgur's full-sized avatar
🏠
Working from home

Wang Shudao vulgur

🏠
Working from home
View GitHub Profile
@junping1
junping1 / AppTheme.swift
Created November 29, 2024 09:06
Perfect Shadow SwiftUI
import SwiftUI
public struct PrimaryShadowModifier: ViewModifier {
private let cornerRadius: CGFloat
public init(cornerRadius: CGFloat = .zero) {
self.cornerRadius = cornerRadius
}
public func body(content: Content) -> some View {
@randomor
randomor / App.swift
Last active February 19, 2021 20:59
SwiftUI 2020 + CloudKit + Core Data ZenJournal prototype: https://thezenjournal.com
import SwiftUI
import CoreData
let appTransactionAuthorName = "app"
@main
struct ZenJournalApp: App {
var body: some Scene {
WindowGroup {
@zacwest
zacwest / ios-font-sizes.swift
Last active April 24, 2025 07:18
iOS default font sizes - also available on https://www.iosfontsizes.com
let styles: [UIFont.TextStyle] = [
// iOS 17
.extraLargeTitle, .extraLargeTitle2,
// iOS 11
.largeTitle,
// iOS 9
.title1, .title2, .title3, .callout,
// iOS 7
.headline, .subheadline, .body, .footnote, .caption1, .caption2,
]
@JaviLorbada
JaviLorbada / FRP iOS Learning resources.md
Last active April 20, 2025 21:15
The best FRP iOS resources.

Videos