Skip to content

Instantly share code, notes, and snippets.

View juansanzone's full-sized avatar
📱
Mobile ❤️

Juan Sanzone juansanzone

📱
Mobile ❤️
View GitHub Profile
//
// InstaStories.swift
// SwiftUITests
//
// Created by Fabio Giolito on 23/06/2019.
// Copyright © 2019 Fabio Giolito. All rights reserved.
//
import Combine
import SwiftUI
@juansanzone
juansanzone / GeometryReaderInList.swift
Created June 23, 2019 18:22 — forked from sphilipakis/GeometryReaderInList.swift
Use GeometryReader in List (stretchy headers, etc...)
import SwiftUI
struct ContentView : View {
var body: some View {
List {
HeaderView()
ForEach(0...20) { n in
Text("Row #\(n)")
}
}
import SDWebImage
// ...
func fetchWeatherImage() -> Image {
let imageFileName = weather.iconUrl ?? "01d"
let uiImageView = UIImageView()
uiImageView.sd_setImage(with: URL(string: "https://path/\(imageFileName).png"), completed: nil)
if let image = uiImageView.image {