Images
Monday Hero can automatically understand the images, and convert design to Swift/Kotlin code.
Last updated
Monday Hero can automatically understand the images, and convert design to Swift/Kotlin code.
Last updated
//ListPageViewController.swift
import UIKit
class ListPageViewController: UIViewController {
// MARK: - Properties
//Connection from an Interface Builder to a UI component
@IBOutlet private weak var photoImageView: UIImageView!
@IBOutlet private weak var iconImageView: UIImageView!
@IBOutlet private weak var logoImageView: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
setupViews()
setupLayout()
}
}
extension ListPageViewController {
private func setupViews() {
}
private func setupLayout() {
//Constraints are defined in Storyboard file.
}
}<!--activityExample.xml-->
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ListPageActivity"
android:background="?attr/daisy">
<ImageView
android:id="@+id/photoImageView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:src="@drawable/photo2"
android:scaleType="centerCrop"
android:layout_marginStart="20dp"
android:layout_marginEnd="20dp"
android:layout_marginBottom="13dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/popularTextView"
app:layout_constraintBottom_toTopOf="@+id/rosieDelTextView"/>
<ImageView
android:id="@+id/iconImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/icon"
android:layout_marginEnd="19dp"
android:layout_marginTop="14dp"
android:layout_marginBottom="20dp"
app:layout_constraintStart_toEndOf="@+id/likesTextView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/photoImageView2"
app:layout_constraintBottom_toTopOf="@+id/photoImageView"/>
<ImageView
android:id="@+id/logoImageView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:src="@drawable/logo"
android:layout_marginTop="267dp"
android:layout_marginBottom="211dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@+id/copyrightTextView"/>
</androidx.constraintlayout.widget.ConstraintLayout>